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.

Dark GDK / how to stop draw object that not in screen

Author
Message
Taoie
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 14th Aug 2008 07:55
i have heart that darkbasic use Exclude Object on/Exclude Object off

and how about dark gdk
RancidRat
16
Years of Service
User Offline
Joined: 19th Feb 2008
Location:
Posted: 14th Aug 2008 11:00 Edited at: 14th Aug 2008 11:01
I think you can use the expression:

dbObjectInScreen ( int iObject )

and then use dbHideObject()

e.g.

if (dbObjectInScreen(5) == 0) dbHideObject(5);

I did something like that once where I had hundred space ships flying around a space area, the framerate was really bad untill I hid the objects that were not in the screen.
Taoie
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 14th Aug 2008 13:49
arr thx you so much!

Login to post a reply

Server time is: 2024-10-07 13:25:10
Your offset time is: 2024-10-07 13:25:10