06-26-2019, 10:57 PM
It makes the windows faster but there is still a significant delay.
It's because lines like this
always draws all items all over again when the window updates.
So I thought about something that only draws items in range of the visible entrys of the window. But that would need to update each time the index changes so I'm not sure if that would cause lag.
It's because lines like this
Code:
@item_max.times {|n| draw_item(n) }
always draws all items all over again when the window updates.
So I thought about something that only draws items in range of the visible entrys of the window. But that would need to update each time the index changes so I'm not sure if that would cause lag.