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 / Some more technical advice please.

Author
Message
Gilfalas
22
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Luxembourg
Posted: 5th Feb 2003 13:24
Hi

I took Rich's advice and now create my objects at the beginninig of a level and not on-the-fly. This did indeed solve the fluidity problem. Thanks!

Now I was wondering, is it more efficient to create objects and place them out of view(outside of the field of view) and move them in when needed or hide the objects and only show them when needed?

I would like to optimize my code as far as possible. Thanks for your help.

What would take less CPU time?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 5th Feb 2003 14:09
Hide them. The DB doesn't have to check whether to even draw them or not.
Gilfalas
22
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Luxembourg
Posted: 5th Feb 2003 14:53
Goodie! that's what I though...thanks for confirming

Login to post a reply

Server time is: 2025-05-19 23:00:09
Your offset time is: 2025-05-19 23:00:09