Cities: Skylines

Cities: Skylines

86 értékelés
Simulation Speed Benchmark
   
Díjazás
Kedvenc
Kedvenc
Törlés
Mod
Fájlméret:
Közzétéve:
6.656 KB
2017. ápr. 19., 3:31
1 változásjegyzék ( megnézés )

Feliratkozás a letöltéshez
Simulation Speed Benchmark

Leírás
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 megjegyzés
umbrellers 2021. máj. 2., 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 2021. máj. 2., 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  [készítő] 2020. jún. 29., 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 2020. jún. 27., 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 2020. jún. 25., 7:13 
AllegedlyLuca 2019. aug. 7., 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 2019. máj. 7., 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 2019. jan. 12., 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  [készítő] 2018. máj. 13., 10:44 
@Aminushki Lower is better
Aminushki 2018. máj. 13., 8:25 
lower is better? or is it the other way around?