OpenGL-ES 2.0 VS OpenGL-ES 1.1, which is faster?

后端 未结 2 1550
盖世英雄少女心
盖世英雄少女心 2021-02-15 17:16

I\'ve written an app using OpenGL-ES 1.1, but am wondering if there are speed gains to be found by switching to 2.0. Has anyone done any tests with large polygon count models? I

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-15 17:44

    The performance gains in ES 2.0 aren't from rendering single VBOs, but through

    1) performance tweaks in custom shaders to do only the bare minimum required rather than more general fixed functions

    2) rendering lots of objects due to the streamlining of the matrix pipeline and the removal of the matrix stack and the "fixed function", which must figure out new shaders on state changes, and the removal of the need for multipass rendering for some effects.

    This allows e.g. the CPU to do all dynamic matrix transformations in a separate thread, whilst ignoring static matrices and avoid unneeded transfer between the CPU->GPU. There's no need to continually redo camera matrices between 2D and 3D state changes in shader versions.

提交回复
热议问题