Cities: Skylines

Cities: Skylines

86 ratings
Simulation Speed Benchmark
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
6.656 KB
Apr 19, 2017 @ 3:31am
1 Change Note ( view )

Subscribe to download
Simulation Speed Benchmark

Description
This mod shows, in the top left corner of the screen, the ammount of time the game takes to process one simulation frame in miliseconds.

Simulation frames per seconds
One week takes 4096 frames. One Day and Night cycle takes 65536 frames.
At normal speed the game does at most 60 frames per second.
At 2x speed the game does at most 120 frames per second.
At 4x speed the game does at most 240 frames per second.

Notes
This is only useful to benchmark the CPU

Source code
You can download it here: https://cld.pt/dl/download/b2583bc8-2fc9-4124-96e7-195c554c6991/SimulationSpeedBenchmark.zip
35 Comments
umbrellers May 2, 2021 @ 9:09pm 
An error has occured in mod's OnAfterSimulationFrame method.
System.NullReferenceException: Object reference not set to an instance of an object
at ColossalFramework.UI.UIDynamicFont+DynamicFontRenderer.Obtain (ColossalFramework.UI.UIDynamicFont font) [0x00000] in <filename unknown>:0
at ColossalFramework.UI.UIDynamicFont.ObtainRenderer () [0x00000] in <filename unknown>:0
at ColossalFramework.UI.UILabel.ObtainRenderer () [0x00000] in <filename unknown>:0
at ColossalFramework.UI.UILabel.Invalidate () [0x00000] in <filename unknown>:0
at ColossalFramework.UI.UILabel.OnTextChanged () [0x00000] in <filename unknown>:0
at ColossalFramework.UI.UILabel.set_text (System.String value) [0x00000] in <filename unknown>:0
at SimulationSpeedBenchmark.Threading.OnAfterSimulationFrame () [0x00000] in <filename unknown>:0
at HealkitMod.Patches.ThreadingWrapperOnAfterSimulationFramePatch.Prefix (System.Collections.Generic.List`1 ___m_ThreadingExtensions) [0x00000] in <filename unknown>:0
umbrellers May 2, 2021 @ 9:09pm 
I suspect this mod has a little bug.

I played with only two mods enabled: Simulation Speed Benchmark + Extended Error Reporting, and got an error. So probably it isn't a mod compatibility issue.
I don't have a GPU and use the Intel graphics card, so this might be the cause.

The difficulty is reproducibility. This error occurs very randomly. After the error happens, sometimes I can continue the game by closing the popup, but sometimes the same popup reappears immediately and can't go back to the game forever.
IMO the bug is not so crucial, because the error happens very rarely (1/hour) and does not break the save.

I will paste the error message to the next post.
Overhatted  [author] Jun 29, 2020 @ 1:34pm 
@stmSantana Thank you. It's unlikely to be broken, it's most likely incompatibilities between mods that are very hard to debug. Also, this mod gives you the time the game takes to process one simulation frame, it doesn't have anything to do with the graphics frame rate. It seems to me that Monitor It! doesn't give that value so it's not like you can replace this mod with Monitor It!.
stmSantana Jun 27, 2020 @ 10:37pm 
@KitaNishi
This is no error for me.
https://imgur.com/Fpj4Miv
Maybe this conflicts with other mods? It shouldn't be called "broken".

And Monitor it mod only displays the frame rate and memory usage, That is not for benchmarking.
Kitanishi Jun 25, 2020 @ 7:13am 
AllegedlyLuca Aug 7, 2019 @ 1:02pm 
Mod causes random "Object reference not set to an instance of an object" errors sporadically. Otherwise, works really well and I like it.
Rena May 7, 2019 @ 10:23am 
This seems to cause some glitch for me. Occasionally the money disappears from the statusbar, and I get random errors popping up more and more frequently until I have to save and quit. Only happened when I had this mod enabled.
ZAIRED Jan 12, 2019 @ 12:40pm 
This tool is great! I can know when some citizen are getting stucked somewhere I can see that the number is boosting up suddenly! Thanks a lot!
Overhatted  [author] May 13, 2018 @ 10:44am 
@Aminushki Lower is better
Aminushki May 13, 2018 @ 8:25am 
lower is better? or is it the other way around?