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 · 10 comments
Open

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

Enyuma00 opened this issue Oct 21, 2021 · 10 comments

Comments

@Enyuma00
Copy link

@Enyuma00 Enyuma00 commented Oct 21, 2021

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

@Enyuma00 Enyuma00 commented Oct 21, 2021

In case you need it yes i use 64bit windows

@Stratdan0
Copy link

@Stratdan0 Stratdan0 commented Oct 22, 2021

also happens to me

@Rau117

This comment has been minimized.

@nironotaken
Copy link

@nironotaken nironotaken commented Oct 26, 2021

me too

@fRosTySann
Copy link

@fRosTySann fRosTySann commented Jan 1, 2022

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

@michicc
Copy link
Member

@michicc michicc commented Jan 1, 2022

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

@fRosTySann
Copy link

@fRosTySann fRosTySann commented Jan 1, 2022

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 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

@fRosTySann fRosTySann commented Jan 1, 2022

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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants