Sponsors |
|
|
 |
|
02-19-2008, 02:59 PM
|
#11 (permalink)
|
|
Code Monkey
USER INFO »
Posts: 2,440
Reputation:
Join Date: Nov 2005
Currently: Online
| Contact: |
|
|
Okay, better yet...
for (i=1, vid_default=0 ; i<nummodes ; i++)
{
if ((modelist[i].width == width) && (modelist[i].bpp == bpp) && (modelist[i].refreshrate == refreshrate))
{
vid_default = i;
done = 1;
break;
}
}
I had to check the refreshrate for each mode.
You probably noticed even if u used -refreshrate in the commandline it would startup using 640x480 @59hz... now instead it will set the mode+refreshrate properly and no more double "VID_SetMode" ....
EDIT:
Okay this works perfectly for me on both my lcd and CRT, if not specified -width/-height etc it grabs the settings from the desktop. And Qrack starts up much faster now  will post an updated version tonight.
Last edited by R00k; 02-19-2008 at 03:07 PM..
|
|
|
|
02-19-2008, 06:18 PM
|
#12 (permalink)
|
|
Chthon
USER INFO »
Posts: 915
Reputation:
Join Date: Mar 2006
Currently: Offline
| Contact: |
|
|
hmm nice.. proquake needs that too
|
|
|
|
02-19-2008, 06:25 PM
|
#13 (permalink)
|
|
Administrator
USER INFO »
Posts: 7,283
Reputation:
Join Date: Nov 2005
Currently: Offline
|
Originally Posted by =peg=
hmm nice.. proquake needs that too
Explain a little more so I understand what you mean.
And Qrack starts up much faster now
That's blazing fast. I was shocked.
I'm jealous!!! Seriously!!!
I need your source code.
|
|
|
|
02-19-2008, 06:38 PM
|
#14 (permalink)
|
|
Chthon
USER INFO »
Posts: 915
Reputation:
Join Date: Mar 2006
Currently: Offline
| Contact: |
|
|
well i meant that proquake just grabs your desktop settings and uses that by default (unless specified otherwise in config.cfg or commandline) so it does not need to initialize twice.. => starts up faster
|
|
|
|
02-19-2008, 06:53 PM
|
#15 (permalink)
|
|
Administrator
USER INFO »
Posts: 7,283
Reputation:
Join Date: Nov 2005
Currently: Offline
|
ProQuake initializes twice because it is using the FitzQuake style startup routine. It is doing the ProQuake default resolution of 640 x 480 and then reading the config and changing the video mode (a 2nd video initialization).
Rook apparently is using a vastly superior method that reads the settings before video initialization. (It's probably reading the config earlier and then executing it later ... my guess).
I think if I were to change the default video mode in ProQuake, it would look through the list and find the fastest resolution that matches the aspect ratio for higher FPS.
For example, on a 4:3 display like both my CRTs, I think 640 x 480 is the ideal instead of 1280x960 because the FPS is much higher. On my widescreen laptop, I'd have it use 640x400 instead of whatever the super high res default is.
I've noticed that performance is significantly degraded by those multi-megapixel wide screen resolutions. I get about 60 FPS on my laptop with 1440 x 900, but get 200 FPS with a more reasonable resolution.
|
|
|
|
02-19-2008, 07:32 PM
|
#16 (permalink)
|
|
Chthon
USER INFO »
Posts: 1,510
Reputation:
Join Date: Mar 2006
Currently: Offline
|
Yeah Jackhammer was right about rebooting the computer. I originally still couldn't get it to work with the command line correct, but now I have it working.
I ended up having the old version of Qrack, so it'll take a bit to get used to the new setup, but I think I've officially switched to Qrack from DP as my primary client.
|
|
|
|
02-19-2008, 08:49 PM
|
#17 (permalink)
|
|
Code Monkey
USER INFO »
Posts: 2,440
Reputation:
Join Date: Nov 2005
Currently: Online
| Contact: |
|
|
Originally Posted by Baker
ProQuake initializes twice because it is using the FitzQuake style startup routine. It is doing the ProQuake default resolution of 640 x 480 and then reading the config and changing the video mode (a 2nd video initialization).
Correct, Baker ill have to shoot u my vid_wgl.c file. It ignores all cvar defaults and uses the "current" desktop settings instead.
The reason that it's resetting the vid twice is; once at default (even if the refresh isnt current), then secondly to make everything sync to the cfg/commandline/desktop.
This new method checks
1.> is width same as current
and/or
2.> is height same as current
and
3.> bpp same as current?
and
4.> refreshrate same as current?
if not then shut down the video, and restart.
the problem was i forgot to check for refreshrate on startup, so the
current Hz was ALWAYS not equal to "default" cvar value of 59. Thus, it was resetting the video again at startup even if the settings were in the command line or the .cfg And some cards didnt like base rate of 59hz thus the DIB errors.
So basically if i set, -width 640 - height 480 and nothing else in my commandline then, it will set the refreshrate and the bpp equal to the desktop values, or if those are out of limits it scans the mode array for the best values
Last edited by R00k; 02-19-2008 at 09:02 PM..
|
|
|
|
02-19-2008, 09:49 PM
|
#18 (permalink)
|
|
Administrator
USER INFO »
Posts: 7,283
Reputation:
Join Date: Nov 2005
Currently: Offline
|
Originally Posted by R00k
Correct, Baker ill have to shoot u my vid_wgl.c file. It ignores all cvar defaults and uses the "current" desktop settings instead.
The reason that it's resetting the vid twice is; once at default (even if the refresh isnt current), then secondly to make everything sync to the cfg/commandline/desktop.
This new method checks
1.> is width same as current
and/or
2.> is height same as current
and
3.> bpp same as current?
and
4.> refreshrate same as current?
if not then shut down the video, and restart.
the problem was i forgot to check for refreshrate on startup, so the
current Hz was ALWAYS not equal to "default" cvar value of 59. Thus, it was resetting the video again at startup even if the settings were in the command line or the .cfg And some cards didnt like base rate of 59hz thus the DIB errors.
So basically if i set, -width 640 - height 480 and nothing else in my commandline then, it will set the refreshrate and the bpp equal to the desktop values, or if those are out of limits it scans the mode array for the best values
Interesting stuff!
So Qrack loads like lightning because it isn't actually changing the resolution, I assume. Nice trick.
With that blazing fast load speed, I'm almost tempted to make that method the default in ProQuake, hehehe. I can't believe how fast it loads.
The first time I started Qrack 1.85 I was like "Hmmm ... that seemed fast. Was I paying attention or distracted? I better start it again and watch." ... and then a few seconds later ... "OMG! It did load that fast!"
|
|
|
|
06-19-2008, 11:10 AM
|
#19 (permalink)
|
|
Grunt Victim
USER INFO »
Posts: 1
Reputation:
Join Date: Jun 2008
Currently: Offline
|
Originally Posted by Finn
Having a problem w/ Qrack, it says when i try to run it...
Quake Error: Couldn't set fullscreen DIB mode.
I usually use WQPro, and Joequake runs just fine. Any ideas?
Hi, i have the same problem, just with GL JoeQuake,
and the answers in here, *other one says something, another says something completely diffrent*, its confusing, im a newb and i wish there were a simple
step-by-step solution. In the beginning, the game started well, played for a couple of days, then the error began to pop up, idk y.. & its on windows vista :d . On a laptop.
Either way, NOW I CANT PLAY IT ANYMORE, ERROR "COULND'T SET FULLSCREEN DIB MODE" KEEPS APPEARING! =)
|
|
|
|
06-19-2008, 12:02 PM
|
#20 (permalink)
|
|
Chthon
USER INFO »
Posts: 1,271
Reputation:
Join Date: Apr 2008
Currently: Offline
| Contact: |
|
|
lol i think its a labtop thing cos i had the same for almost every client BUT qrack
you have to make a short cut on desktop and make hight and with specifications in the commnd line thing
like mine but with your screen size/settings:
C:\Users\alex\Desktop\quake\mhglqr8.exe -window -height 750 -width 1280
|
|
|
|
 |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting 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
|
|
|
|