Rendering Efficiently - snoplus/snogoggles GitHub Wiki
Requirement
Ideally snogoggles will have a frame refresh rate above 30Hz, to do this it will need to render efficiently. This means not recalculating a texture if the information it displays is unaltered from the previous refresh.
Solution
The data displayed will need to be recalculated if the event information changes i.e. a new event is selected or if the colours change i.e. new gui or scaling palette. A frame can ascertain this information by querying the RenderState
and GUIProperties
classes, via the following:
renderState.HasChanged()
GUIProperties::GetInstance().HasChanged()