Page 1 of 1

[0.10.2][slpwnd] FPS drop when trains launched 30 -> 19

Posted: Sat Jun 28, 2014 4:37 pm
by erikem
In the save file https://dl.dropboxusercontent.com/u/164 ... ect_05.zip I have on average FPS 30 until trains are lauched.

My FPS when trains are stopped:
Image

When I launch the trains (I think 7 in total) by addin missing rails path near the player FPS gradually goes down to an average of 19 and then stay in between 18.0 and 19.7

My FPS ~30 seconds after I have laucnhed trains (connected rails):
Image

Quite surprising that such small amount of trains on a pretty simple rail network would cause so much lag.

PC specs: https://dl.dropboxusercontent.com/u/164 ... 20Spec.txt

All game options designed to increase FPS are turned on.

Re: [0.10.2] FPS drop when trains launched 30 -> 19

Posted: Mon Jun 30, 2014 3:15 am
by theit8514
Probably the best idea to include the numbers on the left hand side in debug. It shows what the ticks are being spent on and can be used for diagnostics.

Re: [0.10.2] FPS drop when trains launched 30 -> 19

Posted: Mon Jun 30, 2014 3:34 pm
by erikem
No problem if that helps =)
Image
Image

Re: [0.10.2][slpwnd] FPS drop when trains launched 30 -> 19

Posted: Wed Jul 09, 2014 3:53 pm
by slpwnd
Thanks for a good report. There were essentially 3 problems causing this:
1) inefficiency in train movement collision check mechanism
2) too much smoke from the locomotive
3) inefficiency in smoke movement mechanism

So we have tweaked all three of them for 0.10.3 and the problem is now much less serious. There will be further improvements in the future when we have a better smoke animation (so there can be less of it for instance).