Dark Nord wrote:

I have good configured xfree, with my CTX VL500 high sync monitor.
Normally I have on x resolution 1024x768x24 85hz an everything is ok.
But when I run games like UT & Tribes2 wchich hav their own renderers.
The refresh is 60 on 800x600x24/32 and on 1024x768x24/32 is wicked interlaced. So I don't know what to do?

A loop was changed as part of adding Xrandr which adds all available modes / refresh rates to the list that VidModeExtension uses.


If you run xrandr you'll see 'em


bash-2.05b$ xrandr SZ: Pixels Physical Refresh *0 1024 x 768 ( 361mm x 271mm ) *84 75 70 60 87 1 832 x 624 ( 361mm x 271mm ) 74 2 800 x 600 ( 361mm x 271mm ) 85 75 72 60 56 3 640 x 480 ( 361mm x 271mm ) 85 75 72 60 4 720 x 400 ( 361mm x 271mm ) 85 5 640 x 400 ( 361mm x 271mm ) 85 6 640 x 350 ( 361mm x 271mm ) 85 7 512 x 384 ( 361mm x 271mm ) 87 8 416 x 312 ( 361mm x 271mm ) 74 9 400 x 300 ( 361mm x 271mm ) 85 75 72 60 56 10 320 x 240 ( 361mm x 271mm ) 85 75 72 60 11 360 x 200 ( 361mm x 271mm ) 85 12 320 x 200 ( 361mm x 271mm ) 85 13 320 x 175 ( 361mm x 271mm ) 85

A later fix David Dawes added stops the ctrl+/- stuff from switching through every refresh in every mode but, unfortunately the way SDL and possibly other things select video modes means it picks up the crappy end of the refresh rates when switching to a different resolution, so you get 60hz, or possibly an interlaced one.

A few suggestions if this is the cause of your mode problems :-

a)Disabling xrandr will probably fix it - at least until all the wm's and apis etc have support you probably won't miss much.

b)I think a fix was posted to the xfree bug list after a bit of wrangling about whether this was an xrandr bug or not. I can't remember the bug number, but it was filed under xrandr. If (a) doesn't work, with this fix it might.

c)You can use xrandr to switch to the mode before running the game. (with something like xrandr -s 2 which given my output above would switch to [EMAIL PROTECTED]) - that works if the game only switches mode once - it should just use the mode you switched to because it'll be the right size. Some with splash screens / config stuff seem to switch twice [descent 3 does that IIRC]

d)There's a patch knocking about for SDL but I think that tries to pick 85 unless there's a newer patch. I think that patch is in the gentoo sdl - it doesn't help if you've a monitor where the best refresh at the res you want is less than 85 (as you can see my 1024x768 says 84, just a rounding thing, but it matters)

If you upgrade SDL you often have to rename the sdl library shipped with the game.

e) possibly others by now - it's been a while since I noticed this.

--
Michael.



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to