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.

Newcomers DBPro Corner / Major Slowdown Problem

Author
Message
Taranthor
19
Years of Service
User Offline
Joined: 3rd Jun 2005
Location: Sydney, Australia
Posted: 12th Jun 2005 01:44
Hey I'm just trying to write a vertically scrolling shooter. And I'm constantly getting major slowdown problems when there are more than a few enemies on screen along with firing.... anything wrong with code that you can see.. (I'm guessing it might be something to do with the arrays, but not certain)
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 12th Jun 2005 03:10
source link broken
Error obtaining Source Code, invalid ID. Sorry but I've given up.


post the code within this space but use the two tags [ c o d e ] [ / c o d e ]

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself 
Taranthor
19
Years of Service
User Offline
Joined: 3rd Jun 2005
Location: Sydney, Australia
Posted: 12th Jun 2005 10:23
Hrm odd.. hehe oh well.. here is the code again

bibz1st
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 13th Jun 2005 00:49
just a thought, try raising or lowering the number of stars to see if you can rule that out as the problem
Taranthor
19
Years of Service
User Offline
Joined: 3rd Jun 2005
Location: Sydney, Australia
Posted: 13th Jun 2005 11:38
Tried that.. no go.. it only happens when the enemies & shots appear on the screen, and only when there are about 7 or more of them at once.
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 14th Jun 2005 06:06
I think all those INK commands might be the problem.

If I remember correctly INK is a slow command - best using sprites.

I may be completely wrong though


The word "Gullible" cannot be found in any English Dictionary.
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 14th Jun 2005 06:25
Try to make not so many enemies. That way, when you enter a room, you can load more enemies, and delete the enemies from the previous area.

______________________________________
<<<<I can program using anything>>>>
Taranthor
19
Years of Service
User Offline
Joined: 3rd Jun 2005
Location: Sydney, Australia
Posted: 14th Jun 2005 07:59
Flashing Blade : I might try removing the ink commands and see what that does.. it's going to eventually be a 3d game (2d perspective) anyway.. I'm just trying to get the actualy physics in place for the game to run.

Master Programmer : Can't do that... the game is based around lots of enemies at once (like Diablo)... if I reduce the amount... then it would affect how the game itself would play too much

Login to post a reply

Server time is: 2024-09-23 21:18:52
Your offset time is: 2024-09-23 21:18:52