TzuChieh / Photon-v2

A program that takes photographs of a virtual world.
https://tzuchieh.github.io/Photon-v2-site/engine_docs/v2.0.0-beta/Photon/html/index.html
MIT License
84 stars 5 forks source link

Transform memory management #8

Open TzuChieh opened 6 years ago

TzuChieh commented 6 years ago

Transforms do not occupy memory as much as primitives (unless meshes are created with one-transform-per-primitive basis); we should just pass data around rather than raw pointers.

TzuChieh commented 8 months ago

Objection. See Swallowing the elephant (part 2). Apart from the use of std::map, transforms do use a fair amount of memory by themselves. Currently our cooking system can easily map identical transforms. Sharing identical transforms would likely to benefit Photon as well.