Open gzotti opened 1 week ago
Great PR! Please pay attention to the following items before merging:
Files matching src/**/*.cpp
:
This is an automatically generated QA checklist based on modified files.
What is the performance benefit from this? Is it even measurable in any way except by using a profiler?
What is the performance benefit from this? Is it even measurable in any way except by using a profiler?
I just wondered what takes so long just displaying InfoText. The commonInfoString was a surprisingly costly part of it, and here this seemingly trivial UTC lookup appears to be far from trivial.
Finding UTC offset is surprisingly costly but is executed per-frame, shown in VTune. Caching the result per-minute saves at least part of it.
This needs some testing.
Description
Fixes # (issue)
Screenshots (if appropriate):
With this caching:
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: