Closed metalpriest94 closed 7 years ago
Workaround commited. Now, less graphical nonsense is rendered. A better solution is still required.
Removed lowest zoom level, as it was not very usable and with zooming controlled by a GridScroller
object, it became possible to call the zooming methods synchronized with the scrolling itself, so the workload for scrolling and zooming simultaniously is now halfed.
Problem of lagging animation is reoccuring.
Delegating the repainting of GamePanel
to a class running a thread for routinely updating GamePanel and deleting repaint()
calls from classes other than JGridPanel
itself avoids repaint()
from being called to often, which caused flickering graphics.
The changes were already merged to master.
What to do? Scrolling-animations should be fluently rendered.
Currently, when scrolling left or up on the lowest zoom,
GamePanel
has issues rendering graphics.