mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-15 20:52:35 +00:00
Reducce cpu usage by not using clip_to for each and every element
This commit is contained in:
@@ -284,9 +284,7 @@ module CyberarmEngine
|
|||||||
@style.background_nine_slice_canvas.draw
|
@style.background_nine_slice_canvas.draw
|
||||||
@style.border_canvas.draw
|
@style.border_canvas.draw
|
||||||
|
|
||||||
Gosu.clip_to(@x, @y, width, height) do
|
render
|
||||||
render
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def debug_draw
|
def debug_draw
|
||||||
|
|||||||
Reference in New Issue
Block a user