3 ms·
Having thousand NPC objects around is no problem at all. The rendering part is the only thing critical/numerous enough that you may have to optimize to such a l
by kaba0 6y ago
Having thousand NPC objects around is no problem at all. The rendering part is the only thing critical/numerous enough that you may have to optimize to such a low level.
- slver 6y agoNot sure what you cover by "NPC objects" but they easily can participate in physics and AI as well (or at least basic scripted behavior). Also significant game state is not only represented by renderable content.
- kaba0 6y agoWell, if it’s physics as well, then yeah having a separate NPC objects may not be the best idea (though if the physics engine awaits some primitives, like for each “object” 3 coordinates before simulation, and then sets the corresponding position on each NPC, it may be fast enough). But Valhalla really is coming, and until many many games have more than enough performance packed in the JVM already.