martedì 5 dicembre 2017

Day 215: Improved Shell and Log

Today I decided to clean the engine a bit, and improve some of the debugging tools, which is always a good long-term investment.

First, I decided to add a small Stat window that constantly shows some of the most important performance data. FPS and draw calls are the most important ones for sure, and the reason I made the system in the first place, but other useful data can be occasionally shown.

I also modified the command parser for the shell, as it still consisted in an ugly chain of ifs, and I never had time to improve it. I created a map of lambda functions, and the command is used to access the map and call the corresponding function. The lambdas also return a string containing an hint about what the command does, and the new "help" command uses this fact to produce helpful messages.

I also fixed some bugs in the scene system and in the material class, and I plan to refactor them a bit more in the future.


Nessun commento:

Posta un commento