
lua
bloodsuckerccj
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
引擎相关修改
//if(WebGLContext._useProgram===program) //returnfalse; gl.useProgram(program); WebGLContext._useProgram=program; returntrue; ...原创 2021-06-07 15:32:30 · 115 阅读 · 0 评论 -
Lua 控制台输出
SimulatorWin.cpp // define 1 to open console ui and setup windows system menu, 0 to disable #include "ide-support/CodeIDESupport.h" #if (CC_CODE_IDE_DEBUG_SUPPORT > 0) #define SIMULATOR_WITH_原创 2016-04-12 15:12:42 · 2945 阅读 · 0 评论 -
Lua 性能优化
一般情况下,你不需要知道Lua实现表的细节,就可以使用它。实际上,Lua花了很多功夫来隐藏内部的实现细节。但是,实现细节揭示了表操作的性能开销情况。因此,要优化使用表的程序(这里特指Lua程序),了解一些表的实现细节是很有好处的。 Lua的表的实现使用了一些很聪明的算法。每个Lua表的内部包含两个部分:数组部分和哈希部分。数组部分以从1到一个特定的n之间的整数作为键来保存元素(我们稍后即将讨转载 2016-05-19 15:17:07 · 618 阅读 · 0 评论 -
函数指针的运用
#include "stdafx.h" #include #include #include typedef int(*FP_CALC)(int, int); int add1(int a, int b) { return a + b; } int sub1(int a, int b) { return a - b; } int mul1(转载 2017-10-31 16:31:37 · 282 阅读 · 0 评论 -
schedule 详解
mmidd CnBlogsHomeNew PostContactAdminRss Posts - 9 Articles - 0 Comments - 34 Cocos2d-X3.0 刨根问底(六)----- 调度器Scheduler类源码分析 上一章,我们分析Node类的源码,在Node类里面耦合了一个转载 2017-10-31 16:51:29 · 10810 阅读 · 0 评论