BitmapText::DrawPrimitives noexcept
This function indirectly determines the amount of average audio latency, this is why changes to BitmapText can affect global offset significantly. Aim to make the function as fast as possible to minimize latency. 1) make BitmapText::DrawPrimitives noexcept - note: RollingNumbers::DrawPrimitives has to also become noexcept as a consequence 2) Define repeated calculations as constexpr functions defined within an anonymous namespace 3) Fix some formatting stuff
This commit is contained in:
@@ -43,7 +43,7 @@ void RollingNumbers::DrawPart(RageColor const* diffuse, RageColor const& stroke,
|
||||
BitmapText::DrawPrimitives();
|
||||
}
|
||||
|
||||
void RollingNumbers::DrawPrimitives()
|
||||
void RollingNumbers::DrawPrimitives() noexcept
|
||||
{
|
||||
if(!m_metrics_loaded)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user