Is it normal when I call glGetUniformLocation
in my render loop only once , Then the CPU usage process goes up to 30-40%? Should I call this method only once and store space in memory?
This is my code:
glutton shader :: getUniform (const std :: string and name) Const {return glGetUniformLocation (m_programId, name.c_str ()); }
Should I call this method only once and store Should store location in?
Yes, this will be the usual procedure either, or experiment.
No comments:
Post a Comment