marcel-valdez / tibia_terminator

Auto-heal, auto-mana, auto-haste, auto-utamo, auto-amulet, auto-ring and auto-tank for Tibia Linux client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refresh the whole view every N (50?) re-renders, in order to clean-up random screen garbage.

marcel-valdez opened this issue · comments

Problem

The screen gets filled with garbage once about every 10-15 minutes, and it stays that way until I change menus, or every now and then it fixes itself.

Solution

A screen.clear, screen.refresh, plus whole screen repaint should at least make it that garbage stays there only for about 2 seconds.

  • Every render is about 60-80 ms, so re-rendering every 50 frames is about every 3000-4000 ms (3-4 sec), so there will be a 'flicker' frame every 50 frames, which is not a lot, maybe even unnoticeable.