Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / has anyone had an error when changing screen resolution

Author
Message
Terabyte
22
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 18th Jan 2003 15:55
has anyone had an error when changing screen resoltion
I have a word of advice...
..don't piss on an electric fence!
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 18th Jan 2003 17:45
If I try and change screen res during a game where a matrix is involved, it crashes. I find I can only reliably change screen res at the beginning of a game's programming, before anything is displayed.

howie
22
Years of Service
User Offline
Joined: 17th Jan 2003
Location: United States
Posted: 18th Jan 2003 19:38
I think what you have to allow for is if you want to be able to change resolution during the game, is you'll need to delete everything and reload again like you do in the beginning. Experiment to see what doesn't crash the computer if it is not deleted and recreated after the resolution change. You may need to keep some global variables to track the state of the game for resetting everything back after a resolution change to put the player back where they were in the game.
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 18th Jan 2003 20:44
exactly. Its just if you're dealing with a large FPS game for example, It might take 2 minutes to load everything from scratch. However once it does, a use might find the screen res is too high and performance is jerky. So they try a lower resolution, and wanna see if that one works straight away, not wait 2 minutes again for it to load Its once of the most annoying bugs for me and one I hope is fixed soon

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Jan 2003 00:51
Its for of a DirectX problem - any screen mode changes flushes all the graphics data meaning you have to re-load everything again. Its the same when you ALT+TAB (more or less), as you may have to reload graphics data if its been "lost".

Its another inefficient Microsoft system.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 19th Jan 2003 00:56
"Its another inefficient Microsoft system"

It always amazes me how so many developers use DirectX when OpenGL is far easier to program.

NOBODY has a forum name as stupid as Darth Shader. I do.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Jan 2003 01:08
Some like DirectX and some have DirectX thrust upon them...

I dont know why everyone doesn't use OpenGL instead - I suspect its due more to Microsofts clout than anything else really.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 19th Jan 2003 02:00
I presumed it was a DBP bug because it worked for me in DB1 ?

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Jan 2003 02:11
It depends of the package... its one reason why some games crash when you ALT+TAB - they dont bother to check to see if anything needs re-loading, and probably all the graphic handles are invalid.

You must get the DX9 SDK - if you ever have trouble sleeping at night, that'll really help - along withe the Speech SDK.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 19th Jan 2003 20:14
So this problem doesn't affect DX9 users? Or am I being too optimistic there?

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Jan 2003 21:07
It effects everyone who uses DX - I presume its still a problem with 9. I haven't read the technical info for 9 yet.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2025-05-17 13:19:19
Your offset time is: 2025-05-17 13:19:19