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:
+1
-1
@@ -70,7 +70,7 @@ public:
|
||||
void CropToWidth(int width);
|
||||
|
||||
virtual bool EarlyAbortDraw() const override;
|
||||
virtual void DrawPrimitives() override;
|
||||
virtual void DrawPrimitives() noexcept override;
|
||||
|
||||
void SetUppercase( bool b );
|
||||
void SetRainbowScroll( bool b ) { m_bRainbowScroll = b; }
|
||||
|
||||
Reference in New Issue
Block a user