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 / my game keeps slowing up!

Author
Message
cloud
21
Years of Service
User Offline
Joined: 27th Oct 2002
Location:
Posted: 22nd Dec 2002 18:31
hi i am having a few problems in db i have alot of objects to make level 1 but i am still working on it amost finished it but when i load anything into it like enemies it slows down untill it doesn't work if anyone can help me then thanks because if this can't be solved then i will have to get a different language to programe my game in and use db for the smaller games that i make which i don't want to do.
please help
cloud
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 22nd Dec 2002 19:08
If you have tons of objects your game will be bound to slow down. Id suggest not showing them all at once. I would find the cameras angle range, and only show the objects if they are inside that range. Also, if you are loading your objects inside the loop, that wont be good either.

Load object "your object.x",1
sync on
do

Load stuff beforehand.

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
cloud
21
Years of Service
User Offline
Joined: 27th Oct 2002
Location:
Posted: 29th Dec 2002 21:36
thanks but how do i get the objects to show when in camera range?

cloud
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 30th Dec 2002 02:45
You need to find the cameras view angle, and check if the objects are inside that angle.

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
cloud
21
Years of Service
User Offline
Joined: 27th Oct 2002
Location:
Posted: 30th Dec 2002 10:22
?????????

cloud
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 30th Dec 2002 17:38
Like this
________
\ /
\ /
\ /
C

If the objects are not in that range then do not call them- delete them. Only call them when they are in that area.

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 30th Dec 2002 20:14
Use this code maybe, im not sure if it works cos Ive never had that problem myself, correct me if Im wrong rpggamer...



Yum! Yum! Yum! Yum!

Login to post a reply

Server time is: 2024-04-26 12:23:31
Your offset time is: 2024-04-26 12:23:31