Batchable Text

8 views
Skip to first unread message

Ryan Hope

unread,
Oct 27, 2012, 9:43:51 PM10/27/12
to cocos-...@googlegroups.com
Is there some reason cocos.text.Label is not a BatchableNode? If I just add a bunch of Labels to my layer the fps drops really low. I was able to increase the fps back up to normal by doing the following:

self.batch = BatchNode()
for _ in range(0,100):
  pyglet.text.Label(...,batch=batch.batch)
self.add(self.batch)

There has to be a better way than this.

Reply all
Reply to author
Forward
0 new messages