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 Discussion / Interesting thing I thought I'd tell you all about...

Author
Message
Yodaman Jer
User Banned
Posted: 21st Jan 2009 04:12
OK, so I was just having fun with string variables (as you'll see in the code in a minute) and I discovered something...



What happens is this: I run the program the first time, and it flashes INCESSANTLY! As soon as it gets to the part where if you click the mouse it gosubs to the THERE label, it starts the program over again and DOESN'T FLASH. In fact, it runs better off! What causes this? Why does it flash the first time, then doesn't flash again?

I just wondered if anyone else has ever had this happen, and if they know how to stop it.


See my new thread [Coins Galore Official Demo] in WIP!
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 21st Jan 2009 18:00
Well, I would bet part of it has to do with a possible switch in screen resolution. If you normally run windows in 1024,768,32 and you switch to 800,600,32 the graphics card nd monitor have to manage the switch in resolution every time you reset the display. There can be a little hic-up in the display mode switch.

Quote: "As soon as it gets to the part where if you click the mouse it gosubs to the THERE label, it starts the program over again and DOESN'T FLASH"

Now that the display mode has been established in full screen mode, there doesn't have to be a reset. I'm just guessing at all of this based on observing my own system.

Just for kicks, try running your code with SET DISPLAY MODE set to what you use in windows and see if it makes any difference.

I imagine because I run DBC in windows 98, I've never experienced flashing or any kind of display or timing problems - but I do get a little hic-up when the display mode is set differently in DBC than what it is in windows.

Enjoy your day.
Yodaman Jer
User Banned
Posted: 21st Jan 2009 18:31
Well Latch, it didn't fix it, but I tried something different...

I replaced SET DISPLAY MODE with SET WINDOW ON/SET WINDOW SIZE and the flashing disappeared.

Does this ever happen in DBPro? Is it just that DBC is old and designed for older computers and so something just doesn't work properly? I don't know why this never bothered me before.


See my new thread [Coins Galore Official Demo] in WIP!

Login to post a reply

Server time is: 2026-07-05 00:01:50
Your offset time is: 2026-07-05 00:01:50