Wargus / stratagus

The Stratagus strategy game engine
GNU General Public License v2.0
631 stars 120 forks source link

Screen flashes when starting new building construction #432

Open mgtroyas opened 1 year ago

mgtroyas commented 1 year ago

Using 3.3.2 version on Windows 11. AMD RX580 video card with latest drivers.

Many times when a peasant starts constructing a building, alll the screen flashes briefly (one frame).

SimoneStarace commented 1 year ago

Hello @mgtroyas This is weird to me because it never happened on Wargus. Does it happen on Wargus or on another one? If possible can you write down the steps on when you get this issue?

mgtroyas commented 1 year ago

I just did a clean 3.3.3 install, recorded a quick video and watched it frame by frame. What happens is:

1) The peasant is going to build something: imagen

2) When he starts, a frame is drawn without assets nor fog of war, GUI, but only the visible background and an informative text caption at the bottom. imagen

3) Next frame is drawn correctly. imagen

So it looks as a quick "glitch" at normal speed.

https://github.com/Wargus/stratagus/assets/30797135/b572670d-d73c-47d5-a72b-f555adbfb883

SimoneStarace commented 1 year ago

Hello @mgtroyas I understand now what do you mean for screen flashes. This happens even on the stable version (3.3.2) but it only happens after one building has been completed. Unfortunately I don't know the cause of this.