Monday, December 29, 2008

Video mode changing - AND MORE!

Currently working on video mode changing; all is going - kinda - well. This is unexplored territory for me, straight into the unknown of changing video modes under Direct3D.

Even if I don't get the full thing working, we will have the ability to select a value for "vid_mode", have it stored in config.cfg, and have it set properly on the next startup. Which I guess is something better than GLQuake had. This is already coded and working beautifully, took all of 10 minutes or so, and the best thing is that since I switched the cvars over to self-registering, I can now pre-load the configs immediately after the filesystem comes up (i.e. before video) so you won't have to contend with double-switches.

I also took the opportunity to test out 16 bit modes while doing this, happy to report that they work fine.

I have another Alt-Tab bug; right now the screen gets garbled a little after switching back (fullscreen only). I suspect that the cause is the weird way I'm handling viewports, but I intend changing them to a more standard method before release. For now the fix is to either bring down the console or bring up the menus, and all will be back to normal.

Speaking of menus, today I added a whole load more Options submenus, so you'll be able to see quite a lot of functionality exposed. The ordering of these isn't finalised, but what I have seems fine to work with for now. I really need to get it to a stage where I can just delete the old menu.cpp from the project.

I also added the "Search for Local Games" menu and started on the Server List. Tomorrow I'm going to finish that, tidy up a little, and start running LAN tests.

We're still on track for release before the 4th; if I don't get the video thing sorted I'm just going to release without it. It's still a step forward from where I was, so I'll be happy.

The size of the change log for this one is scary, by the way. You'll see the full thing when I release, but you can get an idea from the updates I've been posting. With hindsight I should have, and could have, split it over 3 releases, and worked on the menus behind the scenes, but done is done.

1 comments:

automatic driver update said...

awesome, hope the video modes integration goes well! keep up the good work!