Archvile
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > Can't seem to enable vsync
 
Author
All times are GMT. The time now is 11:44. Post New Thread    Post A Reply
Cole Burna
Banned


Posts: 11
Registered: 05-10


Hello. I've been trying to make vsync work with the latest svn build (and also the latest official release) but it is no use.

-vsync: broken.

v_retrace: broken.

Before I go into details, I'd like to know if for some reason I should expect this to happen.

Regards.

Old Post 05-29-10 04:34 #
Cole Burna is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
entryway
Forum Staple


Posts: 2739
Registered: 01-04


'windib' does not support vsync and probably it is by default in EE. You have to use 'directx' SDL video driver. Try to use '-directx' command line switch. But if you have modern OS, then probably you will have some problems (with palette for example).

Also 'windib' is needed for dosbox (at least on my Win7), otherwise some keys do not work. For example I can't use '=' key in DOSBox (screen/automap zoomin in doom/heretic/hexen). So I use such DOS.BAT:
code:
d: cd \tools\dosbox set sdl_videodriver=windib start d:\tools\dosbox\dosbox.exe -noconsole

Old Post 05-29-10 08:10 #
entryway is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit || Quote
Cole Burna
Banned


Posts: 11
Registered: 05-10


Thanks for the trick, it worked. Unfortunately I get random stuttering with vsync on, so even though I don't have problems with the palettes or anything else, I feel discouraged already.

Will give it another try when/if it's fixed.

Old Post 05-30-10 10:42 #
Cole Burna is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
Gez
Why don't I have a custom title by now?!


Posts: 11546
Registered: 07-07



entryway said:
Also 'windib' is needed for dosbox (at least on my Win7), otherwise some keys do not work.

If you uninstall the infrared remote driver in the control panel, windib shouldn't be needed anymore. See this. And if you need that driver, Windows will reinstall it automatically if you plug a receiver.

Old Post 05-30-10 11:32 #
Gez is online now Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
Porsche Monty
Member


Posts: 454
Registered: 06-10


Are there any plans for getting rid of the hiccups in DirectX mode? the more I learn about Eternity's features, the more I like it, but it's annoying problems like this what keep me from giving it the attention it deserves.

__________________
Pirates are nothing but trash. Be a good citizen and support SOPA/PIPA.

Old Post 03-08-12 15:17 #
Porsche Monty is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
Quasar
Moderator


Posts: 6167
Registered: 08-00



Porsche Monty said:
Are there any plans for getting rid of the hiccups in DirectX mode? the more I learn about Eternity's features, the more I like it, but it's annoying problems like this what keep me from giving it the attention it deserves.

You must run the game in 32-bit mode. Either use -8in32 on the command line or go into system.cfg and set the display surface bitdepth to 16-, 24-, or 32-bit (32-bit recommended strongly). This is not an Eternity bug, and it cannot be fixed by Eternity. It is an SDL DirectX backend idiocy of which SDL has been notified multiple times and refuses to fix.

Also, vsync works best with the OpenGL 2D-in-3D backend.

Old Post 03-08-12 16:47 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
Porsche Monty
Member


Posts: 454
Registered: 06-10


Been there, done that, but it didn't work.

-8in32 was one of the first things I tried, basically because it fixed the item pickup palette lag in Chocolate Doom so I thought it might do something for Eternity given that it too is based on SDL.

Maybe I'm barking at the wrong tree here, but SDL, at least the way it works with Chocolate Doom, provides 100% hiccup-free video for me, and that's why I thought it was an Eternity problem.

__________________
Pirates are nothing but trash. Be a good citizen and support SOPA/PIPA.

Old Post 03-08-12 17:24 #
Porsche Monty is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
Quasar
Moderator


Posts: 6167
Registered: 08-00



Porsche Monty said:
Been there, done that, but it didn't work.

-8in32 was one of the first things I tried, basically because it fixed the item pickup palette lag in Chocolate Doom so I thought it might do something for Eternity given that it too is based on SDL.

Maybe I'm barking at the wrong tree here, but SDL, at least the way it works with Chocolate Doom, provides 100% hiccup-free video for me, and that's why I thought it was an Eternity problem.


You are the only person to ever report this as not fixing the DirectX issue. I think you should try again; it's possible you didn't actually get the mode you requested because your card doesn't support it. I would suggest trying different combinations of resolution and bitdepths higher than 8-bit.

Old Post 03-08-12 18:43 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
Porsche Monty
Member


Posts: 454
Registered: 06-10


I double-checked with a Windows printscreen screenshot (when the colours in the output image are ok, there's a big chance it isn't 8-bit) so I think I'm getting the requested mode?

I could only accurately test this with 2 display modes because others don't have that perfect 70hz and Eternity does not compensate when you're off by a few decimals, unlike, for example, Doom64 EX.

The problem isn't really like the item pickup palette hiccup in CD, it actually resembles more the stutter you get in most 35fps-capped source ports when vsyncing to anything other than a perfect 70hz or a multiple.

If SDL's still to blame here, well, guess I'm out of luck.

Thanks for the suggestion sorry for the inconvenience.

__________________
Pirates are nothing but trash. Be a good citizen and support SOPA/PIPA.

Old Post 03-09-12 18:26 #
Porsche Monty is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
Quasar
Moderator


Posts: 6167
Registered: 08-00



Porsche Monty said:
I double-checked with a Windows printscreen screenshot (when the colours in the output image are ok, there's a big chance it isn't 8-bit) so I think I'm getting the requested mode?

I could only accurately test this with 2 display modes because others don't have that perfect 70hz and Eternity does not compensate when you're off by a few decimals, unlike, for example, Doom64 EX.

The problem isn't really like the item pickup palette hiccup in CD, it actually resembles more the stutter you get in most 35fps-capped source ports when vsyncing to anything other than a perfect 70hz or a multiple.

If SDL's still to blame here, well, guess I'm out of luck.

Thanks for the suggestion sorry for the inconvenience.


Just to be certain, you are using -directx and -8in32 together, right? Also, the mode will need to be fullscreen or there's no chance of actually getting a surface that supports any type of sync'd update.

If you can't get this to work, I recommend trying the OpenGL 2D-in-3D backend, because it supports a true vsync that, for me at least, is smooth as glass, and even works in windowed mode.

Old Post 03-09-12 18:34 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
esselfortium
A Major Doomworld Concern


Posts: 6662
Registered: 01-02


Also, try toggling d_fastrefresh in the console. On some computers, setting it to 0 will limit CPU usage with no apparent drawbacks, but on others it can cause noticeable choppiness.

Old Post 03-09-12 19:28 #
esselfortium is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
Porsche Monty
Member


Posts: 454
Registered: 06-10


And so esselfortium solves the mystery. d_fastrefresh had to be turned on. No wonder no backend would work!

Here's a few lines from my system.cfg in case someone else finds himself dealing with this kind of problem:

i_videodriverid = 1
i_softbitdepth = 32
gl_colordepth = 32
d_fastrefresh = 1
use_vsync = 1

Thank you both for your help.

__________________
Pirates are nothing but trash. Be a good citizen and support SOPA/PIPA.

Old Post 03-09-12 20:52 #
Porsche Monty is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 11:44. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > Can't seem to enable vsync

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.