Jump to content

directx draw functions - tearing


prx

Recommended Posts

I'm currently trying to develop a directx-based UI system since I want control over the look and feel of the UI on my server. (Being able to set the cegui theme from a script would be nice.)

Everything is working fine, however dragging a window can cause terrible horizontal tearing. I tried forcing vsync on in my driver settings but the problem persists.

Is there any way of fixing this? I kinda feel like making a flashy UI system is pointless if the user can't even smoothly drag windows in it..

Here's the resource: please don't use my resource I totally changed my mind

Edit: lol nvm the default gui is tearing as well

TLDR Would it be possible to enable vsync in the game or is it hardcoded to be off for a reason?

Edited by Guest
Link to comment
I checked it out and it doesn't seem to be tearing for me. Did you try setting maximum FPS to 60 in the server config?

Yeah, maxfps is 60. (screen refresh is also ~60hz)

Interestingly, it isn't tearing in windowed, windowed maximized of windowed keep res modes, and the tearing kinda seems cyclical.. like it repeats at constant intervals after dragging the window for long enough

Link to comment
Yeah, maxfps is 60. (screen refresh is also ~60hz)

Interestingly, it isn't tearing in windowed, windowed maximized of windowed keep res modes, and the tearing kinda seems cyclical.. like it repeats at constant intervals after dragging the window for long enough

Interesting, my MTA runs in borderless so might be why it wasn't tearing. Will check again later to see what it looks like in fullscreen. Any chance you could record a short video of what it looks like? You can use a site like Streamable so you don't need to fiddle about with YouTube :)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...