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.

DLL Talk / Is there any kind of limit on number of objects you can make?

Author
Message
Darkhog
6
Years of Service
User Offline
Joined: 25th Nov 2012
Location: Mushroom Kingdom
Posted: 4th Dec 2012 04:15
The reason I'm asking is that following code:

fails at object number 65025 (says that the object already exists), number of objects I need to create is 16777216+ as I'm making Minecraft clone (cannot really dump everything into one mesh as I need to be able to dynamically add/remove blocks)
MrValentine
AGK Backer
8
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 4th Dec 2012 05:19 Edited at: 4th Dec 2012 05:20
I believe there is a 32bit cap at 65535... I could be wrong, and you would be best using culling and arrays... etc.

Diggsey
13
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 4th Dec 2012 06:35
The reason it fails is because you are making two objects with the same ID (as the error message says...)

The formula for the ID should be: "1+x+(y+z*256)*256"

[b]

Login to post a reply

Server time is: 2019-06-27 07:57:17
Your offset time is: 2019-06-27 07:57:17