mercoledì 17 giugno 2015

Day 5: Batch and Instancing

Today i built up the batching system of the 3D models, to avoid bad performances later on.

I built a system that groups together the models with the same texture, and then uses instancing to draw all the models with the same texture together.

This is quite optimized, but if two models have the same texture, but are not the same model, the system does not work. I'll try to handle this problem tomorrow.

I also built the GameObject class, which, for now, contains just a Model and a few other things, and i also built the Camera class, which soon will handle the camera movement.

The whole code now is quite a mess,  so tomorrow i’ll probably make a big refactoring.


Nessun commento:

Posta un commento