Making redundant OpenGL calls

后端 未结 2 521
孤城傲影
孤城傲影 2021-01-13 00:17

I was wondering if it is recommended to eliminate all redundant opengl calls.

For instance, should I be doing something like (wrapped in a function):



        
2条回答
  •  臣服心动
    2021-01-13 00:24

    You should probably avoid it. Here (specifically 22.040, you'll have to scroll down the page since there's no anchor for it), it is noted that redundant calls are generally bad practice even though some implementations attempt to minimize the impact.

    Tools like gDEBugger can be used to help track down where you might be making redundant calls, too, if you're in a position where you're not sure how many you may be making in your code base.

提交回复
热议问题