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 / Windows 7 issues.....

Author
Message
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 10th Jun 2011 01:03
Xp to Windows 7 problems...

Okay so i get Db all set up on my new laptop....Move all my stuff(projects) over to it, install DX, blah,blah,blag....and everything seemed fine. till i tried to compile and run an old program, the thing barely ran at 2-3 FPS on the menu! aghhhh i know its not my Laptop, the thing is at least x8 more powerful than my Xp Laptop, What can i do to fix this lag/slowness?

basjak
14
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 10th Jun 2011 01:27
try on another computer with win7 and check the results
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 10th Jun 2011 01:43
K, just ran on dads desktop, got 6-7 Fps, but the machine i wayy more powerful than myy new laptop. my guess is that Win7 needs somthing extra or to be set a certain way?

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 10th Jun 2011 11:08
Speed-wise, Win7 doesn't need anything extra. I have XP and Win7 both installed on the same computer and have noticed no speed differences when running my DB apps.

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Jun 2011 12:07
Win 7 works just fine for me on 3 different machines. I think you need a wider test (more machines) to establish whether it is Win 7 or your program.

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 10th Jun 2011 22:58 Edited at: 10th Jun 2011 22:59
Hmmmm or could it just randomly both my dads desktop and my sucking laptop? idk the things specs are as follows:

AMD Dual Core C - 50
AMD Radeon HD 6250
3 GB Ram.....

Er....I really dont think those are suck specs. right?


Cuz my Test program simply prints "LAG" to the screen 50 times, and im getting a FPS of 10! What the heck?!

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 12th Jun 2011 03:38
Uh, Bump. Does my 'Top just suck(And the desktop, for some reason)? I swear, Ive got DX 11(Now, i had 9.0c,but even with 11 ,same!) on the thing, And im running under full admin privs, with no other open progs....its so frustrating. I dont get whats wrong? Runs fine on my XP and Vista Machines.....

Neuro Fuzzy
16
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 12th Jun 2011 03:48
could you post a sample snippet or executable so that other people can test it on their machines?


Why does blue text appear every time you are near?
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 12th Jun 2011 04:09 Edited at: 12th Jun 2011 04:12


There you go......I get 9 - 10 Fps with that on admin account, 2-5 on other user end(Moms account lol)

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 12th Jun 2011 04:27
Definitely something wrong with your computer I'd say. DB is pretty inefficient with its default text commands as I still only yield 90fps.

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 12th Jun 2011 04:33
......I wonder what the heck it could be! the thing is as clean as clear glass(Virus - wise, Defregaged, error checked , and overclocked........).....

Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 12th Jun 2011 04:36
With your snippet I get around 30 fps. If I take out the for next loop I get a decent frame rate of 60. So try taking out the for loop to see if you get a decent frame rate. It could be how you programmed your menu that is causing a low frame rate. I had the same problem when creating my menu. Using a lot of "SET TEXT" commands will slow down your program.

This will result in low fps



I get around 20 fps with that and my specs are 4gb Ram ddr3, intel i7-820qm 1.73 turbo 3.06, windows 7 - 32 bit, nvidia 230m 1gb graphics card.

So if you are using a lot of text commands in your menu try replacing them with sprites.

A clever person solves a problem, a wise person avoids it - Albert Einstein
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 12th Jun 2011 04:46 Edited at: 12th Jun 2011 04:49
See thats the thing, still geting low frame rate with sprites too! i cant render more than 5-6-7 before my fps drops to a mere 18-20!

Oh and yeah Frame rate Jumps up to 40(yes, 40! WTH?!?!?!??!?! AHHH!!!) if i take out the 50 print statments....

Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 12th Jun 2011 04:57
You could try downloading my WIP. It runs on my 3-4 year old netbook at around 55fps and I think we can all agree it would have low specs. If you have low fps with it then Phaelex could be right.

A clever person solves a problem, a wise person avoids it - Albert Einstein
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 12th Jun 2011 05:02 Edited at: 12th Jun 2011 05:32
Alright. Right now im using another Pc so ill have to download it on this one, put it on a drive, and move it over, may take a min!


Ehhhhh Just a thought, do i need more than DX's runtimes? Do i need to download and install the SDK or something....?

Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 12th Jun 2011 05:35
I don't think so, maybe the latest dx web installer but you shouldn't need any sdk's, that's mainly for DarkGDK.

A clever person solves a problem, a wise person avoids it - Albert Einstein
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 12th Jun 2011 05:37
Oh okay. Im stuck on this comp because the comp in question is currently occupied lol...........

Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 12th Jun 2011 05:41
Which version of DBPro are you using?

A clever person solves a problem, a wise person avoids it - Albert Einstein
Wyldhunt
14
Years of Service
User Offline
Joined: 27th Sep 2009
Location: The Dark Side
Posted: 14th Jun 2011 12:03
Make sure that you're using the newest 7.7beta. It's link and thread stickied in these forums. Win7 SP1 broke DBP programs. If you're not using 7.7 from that sticky, then install it and re-compile your programs. If that doesn't work, I'd try disabling whatever antivirus program you use. There have been a few reports of odd behavior with AV progs making DBP programs act funny sometimes.
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 14th Jun 2011 21:45
Ahhhhhhhhhh wait i still have 7.somthing(..not .7) installed! That could very well be it(Thought never occured to me when installing DX11 to also upgrade to the latest DBP....). I hope. Win7 Sp1 Broke DBP programs? What do you mean, they still run, but just slow.....or is that what you mean?

Wyldhunt
14
Years of Service
User Offline
Joined: 27th Sep 2009
Location: The Dark Side
Posted: 14th Jun 2011 21:57 Edited at: 14th Jun 2011 21:58
Here's the link in case you still need it.
http://forum.thegamecreators.com/?m=forum_view&t=180294&b=1

Usually, any DBP program compiled with an earlier version failed entirely (At least, on my Win7 SP1 compy). But, things definitely don't work right on Win7 SP1 without that beta update. The fixes and such are all listed in the thread.

If that doesn't fix it, and disabling your antivirus doesn't fix it, then I'll be out of ideas.
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 16th Jun 2011 00:54
Ok, so im at 30-45 Fps now(Running L-Type Demo....Was <20...). So there was a minor speed improvement..........-_-

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 19th Jun 2011 22:18
OK!!!!!!! I figured out the problem. I installed another GB of RAM for a total of 4gb of Ram w/Win 7 Home premium on my machine. So I thought this was the problem, however it still ran slow after the extra RAM install(Win 7 however runs quite a bit smoother with some extra RAM to put crap in - Im accessing everything so...quickly now. Now i see it aint so bad!). Im like, What the heck, it should have way more than enough to run this stupid little Demo! SO then i started think it was DB's problem. So i lifted the Sync rate cap from 60(Set it to 0.) and BAM, Instant, smooth as heck runnin, 200 FPS managing L-Type Demo. The problem now is, Why the heck is my Fps So low when i cap it off at 60?

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 20th Jun 2011 08:07
Anyone think this could be some kinda vertical sync issue?

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 21st Jun 2011 00:41
What in hell is vertical sync? Sounds painful, lol.

DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 21st Jun 2011 01:03 Edited at: 21st Jun 2011 01:04
Never cap your programs by setting the frame rate! The makers of DB have posted info about why this is bad practice! ( It automatically puts a pause in your program, never good! Speed is always an issue). Have you tried using set display mode x,y,colour depth,1 option? I normally use 0 and have my own sync timer in finished apps, as it is faster, but for dev, I simply use the ",1" to get a decent test rate. I use both win 7 and xp with no real difference in speed as my system has plenty of memory. Changing the flag from 1 to 0 can add 1000+ fps but I use the 1 flag to keep the speed down to an acceptable level. When I am happy I add in some code using timer() to enable the use of the 0 flag and still get 60 fps for instance.

I actually get slower rates with my xp notebook than my main win 7 desktop. Not that surprising considering the spec difference. I have heard of lots of problems with older versions of DB and win 7, but so far, I am still using a semi old version of DB and have had no problems to date in this regard.

http://s6.bitefight.org/c.php?uid=103081
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 21st Jun 2011 01:25
So what your saying is NOT to use the command "sync rate" and set diplay mode instead?

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 22nd Jun 2011 05:50
Visigoth
19
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Bakersfield, California
Posted: 25th Jun 2011 08:30
You are mixing 2d and 3d. This is not a Windows 7 issue.
Your code snippet:



it ran on my Acer Aspire at 13-17 fps. Black screen background.
Modified code for 3d display, with comments:



this gave me 58 fps.

2d is weird, it doesn't always do what you expect, because its basically line by line to the display. Just try to avoid CLS and SYNC in the same function. Hope this helps.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 25th Jun 2011 08:35
Quote: "Just try to avoid CLS and SYNC in the same function."

I do that all the time.

Here's my typical template:


Visigoth
19
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Bakersfield, California
Posted: 25th Jun 2011 08:36
why?
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 25th Jun 2011 10:57
Just always have and it works fine for me.

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 25th Jun 2011 15:47 Edited at: 25th Jun 2011 22:54
I get weird results too.

When I run the original snippet as is on my desktop pc with my usual default project settings (full desktop, 640x480) I get a modest 41 fps.

But when I add the following line of code at the top



the fps jumps to 58 - and that's with a much higher screen resolution, i.e. 1680x1050. Exactly the opposite result to what I expected.

So, yes, there is something odd here. You could try playing with the project properties (I'm using the default IDE).

Edit

Just done some more tests with various resolutions and it seems that the lower resolutions give a lower FPS.

A possible explanation is that more screen pixels, i.e. the real native display pixels, need to be filled when text is rendered with a lower display resolution.

Still seems odd that it should have such a big impact on high performance machines when you realize that ALL pixels can be refreshed at very high FPS rates with quite fancy shaders. Something doesn't seem to add up here. Is it a difference between CPU vs GPU rendering? Even so, I don't see why a few characters of text should have such an impact.
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 26th Jun 2011 07:28
Hmmmm yeah im geting higher Fps as i increase resolution as well.....weird much.

SoftMotion3D
AGK Developer
18
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 27th Jun 2011 22:01 Edited at: 27th Jun 2011 22:01
with that last update...... its slow as hell!!

going from any previous release to the fix update for windows service pack 1....very very slow!

Doesnt anyone else notice a major performance hit?

just check out my music app.... i have no idea what im going to do now since it went from playing music back on pace to slow as a snail.

see my forum example of the 2 files. install the first 1 and it will run on windows service pack 1....but slow. install the seperate exe that was recompiled using an older db release and you will see it play back way faster!! but doesnt work on windows service pack 1.

Im extreamly pissed off!!

not even the 2d can be dispayed fast anymore.....its all slow!!

http://forum.thegamecreators.com/?m=forum_view&t=168099&b=5&p=1

i think microsoft deserves a class action law suite!!

SoftMotion3D
AGK Developer
18
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 27th Jun 2011 22:26
ah found a faster patch..... use rc3 from that forum. it works faster then rc7

Whew! this totaly saved the day for Qmidi Studio

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 30th Jun 2011 18:18
Hockeykid
DBPro Tool Maker
16
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 3rd Jul 2011 16:15 Edited at: 3rd Jul 2011 16:17
This works like a charm



It was just a matter of getting the backdrop to turn on, it would seem that the backdrop will only turn on for the print command if you use the "Set Cursor" command, using 0,0 works all the same and fixes the backdrop issue.

Works with and without using Set Display Mode, and no speed drop if you use "Sync Rate 60". Can anyone else test and confirm?

DevilLiger
20
Years of Service
User Offline
Joined: 21st Nov 2003
Location: Fresno,CA,USA
Posted: 4th Jul 2011 01:59
my problem is that whenever i have norton antivirus on it detects that some of db pro's dll are a trojen.gen virus. hope not. so whenever i do disable it i still get errors about some codes on the examples that comes with db pro, but it still works after that. oh well.

Login to post a reply

Server time is: 2024-04-20 07:13:47
Your offset time is: 2024-04-20 07:13:47