Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

Memory 'management' for dynamically sized objects

$
0
0

Hey all,

I'm struggling a bit with defining the approach of handling allocation for the mesh instances in my 3d scene class. Some remarks:

  • I want to be able to identify them using a unique numeric ID (ideally the vector/array index)
  • don't need a full memory pool functionality, because the size in bytes for a single mesh instance object can vary
  • looking for a not overcomplex but in balance easy solution, can always improve later on

So far I've come up with 4 different options.
Question; what would you do/ what other options do you see …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>