Does double buffering for the purpose of vertex streaming do anything in webgl? -
i trying render many moving objects can webgl , updating objects position glbufferdata/glbuffersubdata each frame.i found recommended use double buffer reduce synchronization issues between gpu , cpu: https://developer.apple.com/library/ios/documentation/3ddrawing/conceptual/opengles_programmingguide/techniquesforworkingwithvertexdata/techniquesforworkingwithvertexdata.html , https://www.opengl.org/wiki/buffer_object_streaming , google's webgl optimizationg slides.
so have implemented double buffering , drawing expected. however, there no performance gains. (in fact made slower) curious if double buffer technique described in above 3 documents approriate webgl.
here doing (capture webgl inspector):
frame x:
frame x+1:
Comments
Post a Comment