Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL2/Linux: OpenGL: Window sometimes filled with unitialised pixels at startup #8871

Closed
JGRennison opened this issue Mar 16, 2021 · 1 comment

Comments

@JGRennison
Copy link
Contributor

Version of OpenTTD

Current master (since OpenGL was merged)

Expected result

Glorious perfect hardware accelerated pixels

Actual result

On one of my machines, when OpenTTD is launched using OpenGL, quite frequently when the window first appears it is filled with uninitialised pixels. This is then later replaced with black followed by the title game screen/menu.
Depending on how loaded the machine is and whether it is a optimised/debug/etc build, this can be a coloured flash or last for a few seconds or so.

The GPU is a AMD Radeon R9 270.

-d driver=4 outputs:

dbg: [driver] Successfully loaded blitter '32bpp-anim'
dbg: [driver] Resolution for display: 1920x1025
dbg: [driver] SDL2: Mouse is at (972, 689), use display 0 (0, 0, 1920, 1080)
dbg: [driver] SDL2: using mode 1920x1025
dbg: [driver] SDL2: using driver 'x11'
dbg: [driver] OpenGL driver: X.Org - AMD PITCAIRN (DRM 2.50.0, 5.10.17-051017-generic, LLVM 11.0.0) (4.5 (Compatibility Profile) Mesa 20.2.6)
dbg: [driver] OpenGL: Using persistent buffer mapping
dbg: [driver] OpenGL shading language version: 4.50, texture units = 192
dbg: [driver] Successfully probed video driver 'sdl-opengl'
dbg: [driver] Successfully probed sound driver 'sdl'
dbg: [driver] Successfully probed music driver 'extmidi'
dbg: [driver] using thread for game-loop
dbg: [driver] Switching blitter from '32bpp-anim' to '40bpp-anim'... 
dbg: [driver] Successfully loaded blitter '40bpp-anim'
dbg: [driver] Successfully switched to 40bpp-anim.
dbg: [driver] SDL2: using mode 1920x1025
dbg: [driver] extmidi: set volume not implemented

Screenshot_2021-03-16_21-32-51
Screenshot_2021-03-16_21-39-46

If a new user were to notice such an effect the first time they ran the game it could set a bad first impression.

Steps to reproduce

I assume that this is highly hardware and OS/driver dependant.

@ldpl
Copy link
Contributor

ldpl commented Mar 18, 2021

Same thing on my old laptop with Nvidia GT 540M, I'll add driver output next time I use it.

michicc added a commit to michicc/OpenTTD that referenced this issue Mar 19, 2021
michicc added a commit to michicc/OpenTTD that referenced this issue Mar 20, 2021
2TallTyler pushed a commit to 2TallTyler/OpenTTD that referenced this issue Mar 29, 2021
TrueBrain pushed a commit to TrueBrain/OpenTTD that referenced this issue Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants