03 2019 档案

摘要:1 std::string CSLoader::GetTextureListFromCsb(const std::string& filename) 2 { 5 std::string path = filename; 6 size_t pos = path.find_last_of('.'); 7 std::string suffix = path.subst... 阅读全文
posted @ 2019-03-21 13:02 小翔momo 阅读(196) 评论(0) 推荐(0) 编辑
摘要:解决办法: 在空闲时候异步预加载,后面切换场景就会快很多,前提是内存充足的情况下。 cocos2d-x lua图片资源异步预加载示例: 阅读全文
posted @ 2019-03-21 12:54 小翔momo 阅读(850) 评论(0) 推荐(0) 编辑