los-cocos / cocos

graphic library for games and multimedia, for python language on PC-like hardware
http://los-cocos.github.io/cocos-site/
Other
632 stars 146 forks source link

[solved] crash when showing fps #327

Closed ccanepa closed 5 years ago

ccanepa commented 5 years ago

supercedes #324, #325, #326

crash when showing fps, by example in test_batch.py

The initial change to replace pyglet.font.Text (which no longer exists) with pyglet.text.Label missed to compensate the API changes.

I have working code now, but need to work some more.

Just saying so nobody waste effort on this.

ccanepa commented 5 years ago

fixed the crash in fps, also a related one in pause scene.

Fix at commit 2bac8a7ef66a0fcb43760fabe6083ebf56744113 "fix problems with fps and pause scene, #327, needs doc"

Need to add some compatibility notes, API changed in cocos because pyglet.font.Label does not allow to update the label's font using a font instance. At least I have not found such API.

Maybe it would be safer to review other text changes?

edited for clarity.

ccanepa commented 5 years ago

Documented the change in docgen/compatibilty_notes.txt. commit 19a1574b59373c903733ef619694c46e699c6004 "doc: compatibilty_notes initial update"

This issue is now fixed, keept open for a while for visibilty.

ccanepa commented 5 years ago

fixed in cocos 0.6.7