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:
sukibaby
2024-09-14 02:22:16 -07:00
committed by teejusb
parent 5bb277b5de
commit 934fc54b8a
4 changed files with 73 additions and 41 deletions
+1 -1
View File
@@ -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; }