Tag Info

New answers tagged


and if anyone know how to remove without crashing in cocos2d-x or leaving the "NULL pointer", please tell me.. Understand that: int i = enemies->count(); for(int j = 0; j < i; j++){ ... myArray->removeObjectAtIndex(j); ... } In this time myArray will be the count() = i - 1, but i will stay in i. On the last iteration a null pointer will ...


This is a complex question with a lot of small details that really matter, the performance will vary based on platform and application. So you should profile for possible bottlenecks before investing in optimizations. That said, firstly, I assume you should reduce uploads and updates as much as you can, for example use instancing. Secondly, note that GPUs ...

Top 50 recent answers are included