mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-24 00:14:08 +08:00
internal/graphicsdriver/opengl: Stop using PBO
PBO was introduced to improve the performance at ReplacePixels, but we found that PBO can degrades the performance. Also, now multiple glTexImage2Ds are called successively like a batch, so the situation is now different from that time when PBO was introduced. Let's remove PBO usages and wait and see. Closes #1678
This commit is contained in:
@@ -530,7 +530,7 @@ func (c *context) needsRestoring() bool {
|
||||
}
|
||||
|
||||
func (c *context) canUsePBO() bool {
|
||||
return isWebGL2Available
|
||||
return false
|
||||
}
|
||||
|
||||
func (c *context) texSubImage2D(t textureNative, args []*driver.ReplacePixelsArgs) {
|
||||
|
Reference in New Issue
Block a user