4096 sprite limit
Bug #1178470 reported by
David Griffin
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyGL3Display |
Fix Committed
|
High
|
David Griffin |
Bug Description
Thins are OK with 4096 sprites. Adding the 4097th sprite causes things to fall down, however. Given it's a power of 2 number, that's probably not a coincidence.
Changed in pygl3display: | |
importance: | Undecided → High |
assignee: | nobody → David Griffin (habilain) |
status: | New → Confirmed |
To post a comment you must log in.
With this I get the exception below: ------- ------- ------- ------- ------- ------- ------
-------
import sys,os
from pygl3display import *
GLCommon. initEnvironment ((1680, 1050),fullscree n=True)
import pygame
from pygame.locals import *
floor=loadImage ('block1. png', wrapped=True)
spr=[ list( list() for x in range(80) ) for x in range(80) ]
for y in range(70): range(70) ):
spr[y] [x]=Sprite( image=floor)
spr.append
for x in reversed(
while 1:
sys.exit( )
sys. exit()
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
if event.key== pygame.K_ESCAPE:
if event.type == pygame.QUIT:
for y in range(60):
spr[ y][x].setPositi on( ( -100+(x+y)*16, 500+(y-x)*8 ) )
for x in range(60):
GLCommon. doTasks( )
------- ------- ------- ------- -----
Traceback (most recent call last): error.py" , line 37, in <module> doTasks( ) lib\site- packages\ pygl3display\ glcommon. py", line 253, in doTasks doTasks( layer=layer, target=target) lib\site- packages\ pygl3display\ infrastructure. py", line 375, in doTasks doTasks( layer, target) lib\site- packages\ pygl3display\ infrastructure. py", line 114, in doTasks s.bind( ) lib\site- packages\ pygl3display\ vertexarrays. py", line 388, in bind byref(data, mn)) accelerate. latebind. Curry._ _call__ (src\latebind. c:832) lib\site- packages\ OpenGL\ GL\VERSION\ GL_1_5. py", line 93, in glBufferSubData accelerate. errorchecker. _ErrorChecker. glCheckError (src\errorcheck er.c:854) error.GLError: GLError(
File "lots_sprites_
GLCommon.
File "c:\Python27\
shader.
File "c:\Python27\
client.
File "c:\Python27\
vertexArray
File "c:\Python27\
ctypes.
File "latebind.pyx", line 44, in OpenGL_
File "c:\Python27\
return baseOperation( target, offset, size, data )
File "errorchecker.pyx", line 50, in OpenGL_
OpenGL.
err = 1281,
description = 'ung\xfcltiger Wert',
baseOperation = glBufferSubData,
cArguments = (
GL_ARRAY_BUFFER,
0,
313604,
<cparam 'P' (084E0020)>,
)
)