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 / object question.

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 30th Jan 2006 18:11
hi,my game takes place in a big mansion.im not sure how i should code the loading of the objects,because i want to put alot of objects in each room like paper,chairs,books ,etc.

so my question is:

a: should i load every single object in my mansion at one time,so the entire mansion will be furnished etc?? (will probablly add up to 500+ objects or more.)

b: or should i try to load the objects for only the area my player is in at the time???( if i do it this way,should i delete the objects in the rooms that are not occupied??)


need advice from some smart programmers out there..
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 30th Jan 2006 21:31 Edited at: 30th Jan 2006 21:43
neither are wrong:

A requires more RAM, and will increase loading times

B will go sluggish for a second while you load the objects when you walk into a room...

All a matter of personal choice...

[Edit] - oh, smart programmers...

...maybe one day I'll finish a project

Login to post a reply

Server time is: 2024-09-24 15:32:52
Your offset time is: 2024-09-24 15:32:52