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 / Everything slows down

Author
Message
Fast and Furious
17
Years of Service
User Offline
Joined: 23rd Jul 2007
Location: inside that dog
Posted: 21st Aug 2007 16:18
Ever since my last forum I've been working on this problem, I can't
seem to get the program to load a explosion if there is a collision, everyone of my objects get real slow. Would that be something wrong with my computer
Comrade Robski
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location:
Posted: 21st Aug 2007 17:10
What exactly is the 'explosion' you are loading? An image, a bitmap, an object, a movie, a data file?

Does your program run slow all the time or only when the collision occurs?

What collision detection are you using? DBC collision commands can be very slow in some circumstances.

Need more details!
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 21st Aug 2007 17:12
you shouldn't really be loading it on collision, it should already be loaded just hidden

Your signature has been erased by a mod because it was rubbish.
Fast and Furious
17
Years of Service
User Offline
Joined: 23rd Jul 2007
Location: inside that dog
Posted: 22nd Aug 2007 19:38
I'm loading a animated object,it is always slow,and I'm using a set object collision to spheres 13. (13 is the numeral name of my bullet)


Obese87-what do you mean not loading the explosion on a collision thats the only way I have heard of.
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 23rd Aug 2007 17:10
Try not to load anything during a game. Collision detection can be slow if you program it badly. Best collision routines check for closest object collision, and only those objects that are nearest to Object A, can collide. You need to post your code.

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 23rd Aug 2007 17:20
load everything at the start of your program, before it enters the main loop

Your signature has been erased by a mod because it was rubbish.
Fast and Furious
17
Years of Service
User Offline
Joined: 23rd Jul 2007
Location: inside that dog
Posted: 24th Aug 2007 00:36
Quote: "Best collision routines check for closest object collision, and only those objects that are nearest to Object A, can collide. You need to post your code."


what do you mean by that is there a special command

Quote: "You need to post your code."




O.K. that is the code I'm using.

Login to post a reply

Server time is: 2025-05-30 13:41:06
Your offset time is: 2025-05-30 13:41:06