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

[Bug]: Hardware acceleration makes the game sutter and slower #9641

Open
Enyuma00 opened this issue Oct 21, 2021 · 12 comments
Open

[Bug]: Hardware acceleration makes the game sutter and slower #9641

Enyuma00 opened this issue Oct 21, 2021 · 12 comments
Labels
bug Something isn't working component: OpenGL OS: Windows This issue is related to a MS Windows problem

Comments

@Enyuma00
Copy link

Version of OpenTTD

12.0 Windows 10

Expected result

Hardware acceling should make the game run smoother and faster

Actual result

It made the game run with less than 15fps, caused huge sutters and even sometimes slowdowns

Steps to reproduce

I just turned on hardware accel in the basic settings menu

@Enyuma00
Copy link
Author

In case you need it yes i use 64bit windows

@Stratdan0
Copy link

also happens to me

@Rau117

This comment was marked as abuse.

@nironotaken
Copy link

me too

@fRosTySann
Copy link

It happens to me as well, only good with HAcceleration off

@michicc
Copy link
Member

michicc commented Jan 1, 2022

Please provide more information. Which operating system, which hardware and with which drivers?

@fRosTySann
Copy link

My problem isn't the same as slowing down to 15fps, but the game still stutters, quite a bit with the HWAccell On.
With HwAccel off is smooth.
I've been trying any combination of options since i've posted here my comment.

Oh sure, here it goes:

AMD Ryzen 5 2600X Six-Core Processor 3.60 GHz
RX580 8Gb
16Gb Ram
MOBO Strix x370-F

Windows 10 Pro
21H1
Instaled: ‎09/‎08/‎2021
Compiled version: 19043.1415
Windows Feature Experience Pack 120.2212.3920.0

BUT, I just went to the config file and set videodriver = "win32" cause that option was empty no matter the config I've set in game.
For some reason it's working flawlessly after I edited that line.

I got another problem I might add, HDR gets messed up after the game loads up, when the map loads the colors become washed up. I'm using a Samsung 4k HDR Tv. Should I create another post about that?

@nielsmh
Copy link
Contributor

nielsmh commented Jan 1, 2022

When you set the videodriver = "win32" line in the config file, you force that specific driver and skip auto-detection. The "Use hardware acceleration" option in-game only affects the auto-detection when no video driver is set explicitly. So you're just forcing the setting to "off".

@fRosTySann
Copy link

Ok, got it. Is win32 hardware accelerated or is the same as having it off? Or HW accel is a completly diferent driver? I tried finding it online but only got this info https://wiki.openttd.org/en/Manual/Command%20line#command-prompt-options
That's how I got to the win32 setting

Thanks for the replies :)

@nielsmh
Copy link
Contributor

nielsmh commented Jan 1, 2022

The hardware acceleration is (currently only) based on OpenGL, and it has some components that are shared between the OS drivers (Win32, SDL, Cocoa) and some that are shared within the OS drivers (parts common to Win32 software and Win32 OpenGL, for example).
OpenTTD's Win32 and Win32-OpenGL video drivers have the parts in common that create the OS window, handle input, and run the basic input-simulate-output loop, while the part that actually puts pixels on the screen are separate.

@LordAro LordAro added bug Something isn't working component: OpenGL labels Aug 29, 2022
@wesleychannon
Copy link

Have the same issue here, but if I disable the 'vsync' option, the game appears to run smoothly with hardware acceleration enabled.

@mrpenguinb
Copy link

mrpenguinb commented Mar 7, 2023

Have the same issue here, but if I disable the 'vsync' option, the game appears to run smoothly with hardware acceleration enabled.

Same.
I go further and run the game at 120 FPS so there's minimal tearing when V-Sync is off.

Related issues:
Issue #10079
Issue #9623

@TrueBrain TrueBrain added the OS: Windows This issue is related to a MS Windows problem label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: OpenGL OS: Windows This issue is related to a MS Windows problem
Projects
None yet
Development

No branches or pull requests