Forum Discussion
9 years ago
I managed to replace the game's simulate function and time each simulated element's execution time. Something is very wrong here, as most of the time, one processed thing in the simulate function could take up to 100 ms! Here's another little log just in case it helps you diagnose the problem.
Only things that took longer than 5 ms to process are shown on the log. The number on the left side is the time it took to execute the processed element in milliseconds.
Whenever the timeline has finished "Done with sim timeline for now" is printed.
Here's how it looks like when the game is running normally. I've removed the 5ms limit to show everything that was processed
Unless I'm misunderstanding this, the code should only be scheduling things right?
Only things that took longer than 5 ms to process are shown on the log. The number on the left side is the time it took to execute the processed element in milliseconds.
Whenever the timeline has finished "Done with sim timeline for now" is printed.
156.94403648376465
Done with sim timeline for now
Function took 158.44392776489258 ms
39.52813148498535
Done with sim timeline for now
Function took 80.05785942077637 ms
11.007070541381836. @6026; 15.00 minutes>
101.86004638671875 None
Done with sim timeline for now
Function took 119.37308311462402 ms
8.507013320922852
100.50296783447266
Done with sim timeline for now
Function took 126.4350414276123 ms
13.012886047363281
100.57902336120605
Done with sim timeline for now
Function took 116.59383773803711 ms
100.10290145874023
Done with sim timeline for now
Function took 102.10514068603516 ms
100.18301010131836
Done with sim timeline for now
Function took 103.546142578125 ms
219.33889389038086
Here's how it looks like when the game is running normally. I've removed the 5ms limit to show everything that was processed
0.0
0.49996376037597656
0.49996376037597656
0.5009174346923828
Done with sim timeline for now
Unless I'm misunderstanding this, the code should only be scheduling things right?
About The Sims 4 Gameplay Questions & Issues
Get help and answers to your gameplay questions and issues in The Sims 4.
944 PostsLatest Activity: 9 minutes agoRelated Posts
Recent Discussions
- 9 minutes ago
- 8 hours ago
- 10 hours ago