trevor Posted November 7, 2016 Share Posted November 7, 2016 1. I am sending a group of command 360s, to find the location of rolling-stock at start-up of my plug-in. It's only 31 rolling-stock objects with 128 tracks total but it takes 3.5 seconds to return. The time was fine before I added a bunch of trees and other decorations to the layout. 2. For some reason when I run Internet Explorer when my project is loaded it pretty much kills my computer. Though I guess the latter may be something I am not cleaning up right in the debug environment. Link to comment Share on other sites More sharing options...
Neo Posted November 7, 2016 Share Posted November 7, 2016 Hi Trevor, are you sending the commands in a group (command 10 and 11)? What's your FPS of your layout? Kind regards, Neo Link to comment Share on other sites More sharing options...
trevor Posted November 7, 2016 Author Share Posted November 7, 2016 Ya sending as a group. FPS is a meagre 25ish with all those trees even when the simulation is not running. Link to comment Share on other sites More sharing options...
trevor Posted November 7, 2016 Author Share Posted November 7, 2016 btw response time drops to close to 1 second if I make the trees invisible..... Link to comment Share on other sites More sharing options...
Neo Posted November 7, 2016 Share Posted November 7, 2016 Please attach your layout file so that I can profile it. Kind regards, Neo Link to comment Share on other sites More sharing options...
trevor Posted November 7, 2016 Author Share Posted November 7, 2016 PC_Test_6.mbp Link to comment Share on other sites More sharing options...
Neo Posted November 7, 2016 Share Posted November 7, 2016 Thanks for the layout, but I cannot reproduce your timings. My workflow is as following: Sending command 350 for retrieving all rolling stock in the layout Sending command 10 for beginning the command group For each rolling stock returned by 1, sending command 360 for retrieving the track Sending command 11 for finishing the command group For each rolling stock, reading the result of command 360 All steps are performed within 60 ms, without a command group approx. 500 ms. Hiding other objects does not affect the timings. The layout runs at 200 FPS. Kind regards, Neo Link to comment Share on other sites More sharing options...
trevor Posted November 8, 2016 Author Share Posted November 8, 2016 14 hours ago, Neo said: Thanks for the layout, but I cannot reproduce your timings. My workflow is as following: Sending command 350 for retrieving all rolling stock in the layout Sending command 10 for beginning the command group For each rolling stock returned by 1, sending command 360 for retrieving the track Sending command 11 for finishing the command group For each rolling stock, reading the result of command 360 All steps are performed within 60 ms, without a command group approx. 500 ms. Hiding other objects does not affect the timings. The layout runs at 200 FPS. Kind regards, Neo hmmm.... weird then... 200FPS.... wow.. I get that if I zoom out to cloud level in 3D... then it reads at 250ms. Do you have a dot net system over there... maybe u can run my code in the IDE and see if it's just my system. Link to comment Share on other sites More sharing options...
trevor Posted November 8, 2016 Author Share Posted November 8, 2016 (edited) Sigh... my bad... Apparently I had a slew of unnecessary variable set commands in the Q I didn't know about... I hate multi-threaded code. Sorry for wasting your time again.... thanks for checking though Edited November 8, 2016 by trevor Link to comment Share on other sites More sharing options...
EASY Posted November 9, 2016 Share Posted November 9, 2016 @ Neo, ... if i do so... Sending command 350 for retrieving all rolling stock in the layout Sending command 10 for beginning the command group For each rolling stock returned by 1, sending command 360 for retrieving the track Sending command 11 for finishing the command group For each rolling stock, reading the result of command 360 with that layout and my template it will take 20ms ... 30ms @60 FPS (VertSync=on)... but only if MBS is shown... when i minimize MBS it will take 160ms...280ms... why? EASY Link to comment Share on other sites More sharing options...
Neo Posted November 9, 2016 Share Posted November 9, 2016 Hi Easy, vor 2 Stunden schrieb EASY: when i minimize MBS it will take 160ms...280ms... why MBS automatically enters a "sleep mode" when it gets minimized to not waste too much resources. In sleep mode, the render loop is limited to 10 FPS. Kind regards, Neo Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now