Cities: Skylines

Cities: Skylines

89 vurderinger
Simulation Speed Benchmark
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Mod
Filstørrelse:
Offentliggjort:
6.656 KB
19. apr. 2017 kl. 3:31
1 ændringsbemærkning ( vis )

Abonner for at downloade
Simulation Speed Benchmark

Beskrivelse
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 kommentarer
umbrellers 2. maj 2021 kl. 21:09 
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 2. maj 2021 kl. 21:09 
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  [ophavsmand] 29. juni 2020 kl. 13:34 
@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 27. juni 2020 kl. 22:37 
@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 25. juni 2020 kl. 7:13 
AllegedlyLuca 7. aug. 2019 kl. 13:02 
Mod causes random "Object reference not set to an instance of an object" errors sporadically. Otherwise, works really well and I like it.
Rena 7. maj 2019 kl. 10:23 
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 12. jan. 2019 kl. 12:40 
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  [ophavsmand] 13. maj 2018 kl. 10:44 
@Aminushki Lower is better
Aminushki 13. maj 2018 kl. 8:25 
lower is better? or is it the other way around?