mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-31 11:55:37 +00:00
GPU: Tweak rectangle draw times
This commit is contained in:
parent
d5a5432a8b
commit
3319adfa2f
|
@ -387,10 +387,7 @@ protected:
|
||||||
#endif
|
#endif
|
||||||
AddCommandTicks(draw_ticks << (BoolToUInt8(textured)));
|
AddCommandTicks(draw_ticks << (BoolToUInt8(textured)));
|
||||||
}
|
}
|
||||||
ALWAYS_INLINE void AddDrawRectangleTicks(u32 width, u32 height, bool textured)
|
ALWAYS_INLINE void AddDrawRectangleTicks(u32 width, u32 height, bool textured) { AddCommandTicks(width * height); }
|
||||||
{
|
|
||||||
AddCommandTicks((width * height) << (BoolToUInt8(textured)));
|
|
||||||
}
|
|
||||||
ALWAYS_INLINE void AddDrawLineTicks(u32 width, u32 height, bool shaded) { AddCommandTicks(std::max(width, height)); }
|
ALWAYS_INLINE void AddDrawLineTicks(u32 width, u32 height, bool shaded) { AddCommandTicks(std::max(width, height)); }
|
||||||
|
|
||||||
HostDisplay* m_host_display = nullptr;
|
HostDisplay* m_host_display = nullptr;
|
||||||
|
|
Loading…
Reference in a new issue