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 / Slow Sprites

Author
Message
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 1st Mar 2005 12:53
I programmed a breakout game on my school computer, which uses a god bit of sprites, but my better, gaming pc at home will not run it at satisfactory speed. It is slow as snot. Does darkbasic Punish people for having a better system, or what?

Los
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Location:
Posted: 1st Mar 2005 14:24 Edited at: 1st Mar 2005 14:29
No, for using 2D.Erm some ideas for 2d. well dont scale a sprite too much.. so its too big, just make the loaded image bigger, maybe you got home and wanted all 30 blocks to be bigger and you didn't think much would chage?

If you are using the 2d stuff have you begun writing to another bitmap layer yet? make a bitmap as big as the top half of the screen (or the size of the blocks) set the current bitmap to 2, draw your sprites move them and then copy the bitmap over to the main screen - ZERO.

another way I could say to speed it up is what old machines used to do. this was so they gained speed. Only refresh what you need. If you know one part of the screen doesn't need to be refresh until something is close to it or it's the border all around the outside it never needs to be pasted again or moved.. also collision checks, the way you check bricks or control the ball. perhaps you could put timers in your code and see how long each part takes .. that would just be some fun.. dont blame me if you wasted your time putting it in. Also check the thread above this about speeding your program up.. and check the 2d forums and search a number of words you can think of. Slow. slower. speed. fast, speedy... seperate. If there is one thing I don't like, it's the search function on this forum

" Ahh to finish something! My boy, have you ever accomplished anything? "
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 1st Mar 2005 15:03
hmm. I don't think it's my code, it could be, but I doubt it.
I'm thinking maybe my computer has some adware, er something... uh

School computer;
600mhz
128mb Ram
15gb hdd
not too good video, but its decent, dun remember

Mine;
2ghz
512mb Ram
120 gb hdd
128mb 5200 video

Los
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Location:
Posted: 1st Mar 2005 17:09
yeah ok I did understand you had a better pc but that just didn't matter to ! hwar hwar..

no I don't know then.

" Ahh to finish something! My boy, have you ever accomplished anything? "
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 1st Mar 2005 17:52 Edited at: 1st Mar 2005 17:53
Running DarkBasic is using all of my cpu, and bearly any memory
even without any code, or running a program. -.-

Im going to reinstall DB and hope for the best. Perhaps something has currupted

hyrichter
21
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 1st Mar 2005 21:12
Make sure you have the latest version of DirectX and the latest video card drivers.

Login to post a reply

Server time is: 2025-05-23 19:19:26
Your offset time is: 2025-05-23 19:19:26