clintbellanger / flare

Free Libre Action Roleplaying Engine
http://clintbellanger.net/rpg/
GNU General Public License v3.0
166 stars 41 forks source link

Map rendering broken when Animated Tiles is disabled #879

Closed dorkster closed 12 years ago

dorkster commented 12 years ago

It appears that the background layer is the only layer that is messed up. I would start looking here for a solution. Here's how it looks for me standing near the Frontier Outpost teleporter: screenshot

dorkster commented 12 years ago

Looks like dae3e97 might have something to do with this.

EDIT: Confirmed that this is the offending commit after doing a bisect.

dorkster commented 12 years ago

Alright, after reverting a bit of code, I seem to have solved this. I'll open a pull request for the fix.

On another note, I noticed that the game stutters a bit with animated tiles turned off. This has to do with movedistance_to_rerender in MapRenderer. The higher its value, the less frequently the background is updated, resulting in less CPU usage (which is good :D ). Maybe we want to tweak this value to find the right balance between performance and smoothness.