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 / Stupid...Flashing...Screen...(Yes, I have searched the forum)

Author
Message
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 8th Feb 2006 01:43
Sorry for another question

Ok, I know about the flashing screen bug with Dark Basic, and I have put the cls at the top of the program, and tried it in many different areas. The difference here(from the other problems people have been having) is that I use set camera view.

Can you please help



Take your time, I am in no rush, and this bug does not keep me from continueing on the progect. Sorry for the large amount of topics(I know it isn't really ALOT, but I think it is a little too much. I feel a little guilty )


Hippopotomonstrosesquippedaliophobia-Fear of long words

Attachments

Login to view attachments
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 8th Feb 2006 04:36 Edited at: 8th Feb 2006 04:48
I couldn't really test your code because I use DBPro and because you linked to exterior images, but I did take an extensive look at your code.

Does the screen flashing occur during the player intro? If so, I think your problem lies in your use of the "sleep" command.

For x = -60 to -20
Position object 1,x,object position y(1),object position z(1)
sync
sleep 10
Next x

I would recommend never using the "sleep" command except for in simple text-based programs. You are causing the program to freeze momentarily every sync. If you want to slow down the speed of the player, try making a smaller for/next step value...

For x = -60 to -20 step 0.1

...or using a smaller sync rate...

sync rate 60

...a sync rate of 0 forces the computer to update the screen as fast as possible. Since the human eye can't see any more than about 60 frames per second, I would recommend not using a sync rate above 60. 30 frames per second is usually all you will ever need.

I don't think "cls" has anything to do with your screen flashing because you do not use it inside of your main loop, but I also discourage the use of "cls" over "sync". I'm sorry I couldn't test your game to figure out the true problem, but I hoped I helped anyways.

[Edit]: I have been trying for the longest time to figure out how to spell Hippopotomonstrosesquippedaliophobia. Thanks, I'm going to have to memorize it now. I've got antidisestablishmentarianism and Supercalifragilisticexpialidocious down. I hope your not Hippopotomonstrosesquippedaliophobic, or this would be a scary post.



The computer isn't an addiction; it's more of a mental and social dependency.
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 8th Feb 2006 10:31
I don't know why you have two sync on, cls, sync rate 0. I took them out. It doesn't flash now. Although, it didn't flash when I put them back in again either.




UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 8th Feb 2006 13:46
Ok, thanks. I will try it when I get home. I know it is a graphics card problem. I will also post the graphics card type when I get home. Thanks.

BTW, the flashing DOES NOT occur during the player intro, it occurs after it at random times.


Hippopotomonstrosesquippedaliophobia-Fear of long words
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 9th Feb 2006 01:54
It doesn't work.

Specs:

Celeron CPU 2.40GHz
2.39 GHZ, 512 MB RAM
Intel 82865G Graphics Controller


Hippopotomonstrosesquippedaliophobia-Fear of long words
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 9th Feb 2006 04:48
I ran what you posted in the first message and didn't see any flashing at all.


UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 9th Feb 2006 21:55
Yes, it is a graphics card problem. It only has this trouble with a few kinds of graphics cards. It works on my other computer, but I would like for it wo work on almost all graphics cards.


Hippopotomonstrosesquippedaliophobia-Fear of long words
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 9th Feb 2006 22:30
I'm sure it'll work fine on most cards. I use a GeForce 5200 FX.


UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 10th Feb 2006 20:23
I have searched the forum and have found many instences like this. Just search "flashing". There are enough people who have this problem that I don't want this to happen too, much less my computer...


Hippopotomonstrosesquippedaliophobia-Fear of long words
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 11th Feb 2006 00:52
It used to have something to do with static objects I think, but most people have upgraded their computers since the problems occured about 2 years ago.

UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 11th Feb 2006 02:50
I don't use any static objects...if that is what I think it is.

What are static objects?

I don't use any commands like make static objects...


Hippopotomonstrosesquippedaliophobia-Fear of long words
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 11th Feb 2006 14:10
Don't know then. Could be that someone isn't using the right graphic card drivers. Or direct X 9c.

UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 11th Feb 2006 19:15
Thanks. Do you know where I can find what version of Direct X I have?


Hippopotomonstrosesquippedaliophobia-Fear of long words
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 11th Feb 2006 20:13
run dxdiag

UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 11th Feb 2006 22:18
Thanks I do have direct X 9c though


Hippopotomonstrosesquippedaliophobia-Fear of long words
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 11th Feb 2006 22:40
Thanks for your help, but I just suddenly thought of a good alternative that does almost the same thing, except it doesn't use camera view. thanks though!

I'm happy GOOOOOODBYE STUPID FLASHING SCREEN!!!!!!!!!!


Hippopotomonstrosesquippedaliophobia-Fear of long words
re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 12th Feb 2006 00:12
you dont need dx9.0c you only need dx8
check to see if your using cls as the first command, if not try it.

UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 12th Feb 2006 02:35
The problem is already fixed. Thanks though, although putting cls at the begining was already tried.


Hippopotomonstrosesquippedaliophobia-Fear of long words

Login to post a reply

Server time is: 2025-05-23 18:49:00
Your offset time is: 2025-05-23 18:49:00