branchrust_reboot/main/hackweek_fps_loggingcancel
6 Commits over 0 Days - ∞cph!
Code refactor:
- Changed to using string interpolation instead of concatenation.
- Use StreamWriter instead of File.appendAllText.
- Moved string creation process from LateUpdate to StopLogging to reduce GC.
- Call StopLogging in OnDestory().
Added Ping to the performance logging
Tracking more client performance data:
- Draw Calls, Cull Jobs, Scripts, Update, Late Update, Fixed Update, Physics, Precull, Render
- Added logging for the Heap, Stack and GC (more to come)
- Data is no longer written to the file every frame inside update(). Instead its being saved into a list and
written into the file when stoplogging() is called.
Added a 5 second countdown so the logging doesnt start straight away.
Changed the file directory path the CSV file is saved too. It should now be saved in "Steam\steamapps\common\Rust\Diagnostics".
Can now log client FPS to a file using fps.startlogging.
Use fps.stoplogging to stop the logging, it will logged into a file.