metalpriest94 / The_Old_Days

Development of a tile-based strategy-game. Formerly named 'GridBoard'.
0 stars 0 forks source link

Fix animation while scrolling on lowest zoom. #5

Closed metalpriest94 closed 7 years ago

metalpriest94 commented 8 years ago

What to do? Scrolling-animations should be fluently rendered.

Currently, when scrolling left or up on the lowest zoom, GamePanel has issues rendering graphics.

metalpriest94 commented 8 years ago

Workaround commited. Now, less graphical nonsense is rendered. A better solution is still required.

metalpriest94 commented 8 years ago

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.

metalpriest94 commented 7 years ago

Problem of lagging animation is reoccuring.

metalpriest94 commented 7 years ago

Delegating the repainting of GamePanelto 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.