trevor Geschrieben 7. November 2016 Geschrieben 7. November 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.
Neo Geschrieben 7. November 2016 Geschrieben 7. November 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
trevor Geschrieben 7. November 2016 Autor Geschrieben 7. November 2016 Ya sending as a group. FPS is a meagre 25ish with all those trees even when the simulation is not running.
trevor Geschrieben 7. November 2016 Autor Geschrieben 7. November 2016 btw response time drops to close to 1 second if I make the trees invisible.....
Neo Geschrieben 7. November 2016 Geschrieben 7. November 2016 Please attach your layout file so that I can profile it. Kind regards, Neo
Neo Geschrieben 7. November 2016 Geschrieben 7. November 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
trevor Geschrieben 8. November 2016 Autor Geschrieben 8. November 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.
trevor Geschrieben 8. November 2016 Autor Geschrieben 8. November 2016 (bearbeitet) 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 Bearbeitet 8. November 2016 von trevor
EASY Geschrieben 9. November 2016 Geschrieben 9. November 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
Neo Geschrieben 9. November 2016 Geschrieben 9. November 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
Empfohlene Beiträge
Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren
Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können
Benutzerkonto erstellen
Neues Benutzerkonto für unsere Community erstellen.
Neues Benutzerkonto erstellenAnmelden
Du hast bereits ein Benutzerkonto? Melde dich hier an.
Jetzt anmelden