mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
Painter: Always optimize with -O3.
Use a GCC #pragma to always optimize the Painter code with -O3. This code is performance critical and hotter than anything else in the system, and this helps quite a bit. The 2x, 3x and 4x upscaling fast paths benefit greatly from this.
This commit is contained in:
parent
788fb7699b
commit
641d55c7ef
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,8 @@
|
|||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
#pragma GCC optimize("O3")
|
||||
|
||||
template<GraphicsBitmap::Format format = GraphicsBitmap::Format::Invalid>
|
||||
static ALWAYS_INLINE Color get_pixel(const GraphicsBitmap& bitmap, int x, int y)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue