Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#2143 closed defect (fixed)

Flickering background in main menu on Intel 945G

Reported by: rambomedic Owned by: ben
Priority: Nice to Have Milestone: Alpha 17
Component: Core engine Keywords:
Cc: Patch:

Description (last modified by rambomedic)

In the main menu of Alpha 14, the foreground (what look like athenians, image attached) is flickering. I have attached images of what it looks like when the foreground is visible, and what it looks like when it is not visible. Linked, is a video of the flickering, recorded with fraps. Notably, the flickering seems to slow when recording with fraps. Attached is a dxdiag (directxdialog) log containing hw information, and directx/opengl version information.

Video: http://www.youtube.com/watch?v=IDAk_yoeNc4

To summarize my setup at a glance (full information is in attached log):

Windows 7 SP1 32-bit Core 2 Duo, 3 Gigs of RAM, Intel Integrated GPU

Attachments (3)

hardware.txt (32.6 KB ) - added by rambomedic 11 years ago.
flicker-foreground.jpg (391.7 KB ) - added by rambomedic 11 years ago.
(once, again sorry for jpeg) image where foreground is not visible
flicker.jpg (478.0 KB ) - added by rambomedic 11 years ago.
(sorry it's a jpeg, filesize limit) this is an image where the foreground is visible

Download all attachments as: .zip

Change History (12)

by rambomedic, 11 years ago

Attachment: hardware.txt added

by rambomedic, 11 years ago

Attachment: flicker-foreground.jpg added

(once, again sorry for jpeg) image where foreground is not visible

comment:1 by rambomedic, 11 years ago

Description: modified (diff)
Owner: rambomedic removed

by rambomedic, 11 years ago

Attachment: flicker.jpg added

(sorry it's a jpeg, filesize limit) this is an image where the foreground is visible

comment:2 by historic_bruno, 11 years ago

Hi, I have similar problems with an old Intel GPU. I suspect it's because the background texture is so large that the GPU is having trouble dealing with it, or it could be a driver bug. You can try making sure you have the latest drivers just in case. My other advice would be to upgrade your GPU if you can, it's very old and won't have good performance with 0 A.D. :)

comment:3 by historic_bruno, 11 years ago

Keywords: alpha14, bug, menu, ui → alpha14 bug menu ui
Milestone: Alpha 15Backlog
Priority: Release BlockerNice to Have
Summary: Flickering foreground in main menuFlickering background in main menu on Intel 945G

The other thing I would add: maybe we should have an option to disable the fancy background on lower end hardware, but they will struggle with everything so it's not a high priority.

comment:4 by Marcio, 11 years ago

its possibly we can a Alternative with Background ?

comment:5 by historic_bruno, 10 years ago

Keywords: alpha14 bug menu ui removed
Milestone: BacklogAlpha 17

Ha, it was much simpler than I thought :) It's a z-order problem, all the background sprites are defined at the same depth in the GUI XML, so there's no indication that they should be layered on top of each other by the renderer (see GUI_-_Properties). Apparently most drivers handle this, because I've never seen the problem except on these crappy old Intels. Anyway, manually setting the z values in increments fixes this for me and it shouldn't break for anyone else.

BTW, performance is unchanged (70 fps) with or without the animations and doesn't seem affected by texture size, so I'm leaving that alone.

comment:6 by ben, 10 years ago

Owner: set to ben
Resolution: fixed
Status: newclosed

In 15220:

Fixes flickering in main menu backgrounds on old Intel GPUs, by manually setting the z-values for each layer, fixes #2143

comment:7 by fabio, 10 years ago

I reported a similar issue on my radeon graphic card, a texture flickering on Persian CC: https://bugs.freedesktop.org/show_bug.cgi?id=44126

Do you think it can be fixed as well?

https://bugs.freedesktop.org/attachment.cgi

Last edited 10 years ago by fabio (previous) (diff)

in reply to:  7 comment:8 by historic_bruno, 10 years ago

Replying to fabio:

I reported a similar issue on my radeon graphic card, a texture flickering on Persian CC: https://bugs.freedesktop.org/show_bug.cgi?id=44126

Do you think it can be fixed as well?

I don't think it's too similar, this ticket was specific to the GUI :) You should make a new ticket for that issue. The "easy" fix would be adjusting the model (or its prop points, if those are props). I don't know enough about the renderer to know if we could do much else.

Last edited 10 years ago by historic_bruno (previous) (diff)

comment:9 by fabio, 10 years ago

Filed as as #2630.

Note: See TracTickets for help on using tickets.