enginmanap / limonEngine

3D FPS game engine with full dynamic lighting and shadows

Home Page:http://www.limonengine.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uniform map in the GraphicsProgram should not be holding pointers

enginmanap opened this issue · comments

Pointers are creating another indirection in the hot path, which is not providing any benefits, so should be eliminated.

This is even worse. Since I am using String names to access them, it causes allocations, and it is like 10th highest CPU user in a profile, just to get the names. Material editor should fix this.