首页
学习
活动
专区
工具
TVP
发布

格物致知

专栏成员
66
文章
64960
阅读量
14
订阅数
基于帧同步的游戏框架说明
2,游戏类型是一款在moba游戏上加入rts元素的实时对战游戏,支持1v1,2v2的模式。
用户4766018
2022-11-01
2.8K0
Lua类型系统详解(一)
Lua是一种动态类型的脚本语言,意味着变量没有类型,类型信息包含在值中。目前lua支持八种基本类型:nil,boolean,number,string,table,function,userdata,thread。所有的值都是第一类值,都是可以存储在变量中或者作为函数参数传递,以及作为函数返回值。
用户4766018
2022-08-19
9850
深入理解Go切片
上述过程涉及两个问题,一是函数传接口或者切片类型的参数到底是传值还是传引用,一是切片转接口发生了什么。
用户4766018
2022-08-19
1770
lua5.2引入_ENV的原因
Unlike local variables, which are stored in a special data structure in the interpreter, global variables are just stored in a table. A useful feature in Lua is the ability to change this table per-function, so the function sees a different set of global variables.
用户4766018
2022-08-19
3570
最短路径之Dijkstra算法
这里,我们想要得出节点a(节点1)到节点b(节点5)的最短路径,就是怎么走可以使得权重值的和最小,每一条边都有一个权重。
用户4766018
2022-08-19
1.3K0
unity应用在andriod上崩溃的原因
而且是不确定什么时候出现,用logcat查看了系统日志,就看到是异常地址访问的log,没有什么有价值的信息。
用户4766018
2022-08-19
2K0
java汇编码和反编译插件
① 在Eclipse help菜单 -> install new software -> Add按钮 -> name随意(如bytecode outline) -> Location写http://andrei.gmxhome.de/eclipse/ ② 在中间出现的树形目录中选择你的Eclipse版本对应的bytecode outline插件,打钩,next ... ③ 装完后,重启。 ④ window -> show view -> bytecode,OK了,你打开一个类就能看到字节指令了。
用户4766018
2022-08-19
6950
详解C调用lua脚本效率测试
C调用lua脚本效率测试是本文要介绍的内容,以下代码以C语言为基准,测试了C调用Lua循环和循环调用Lua的效率。结论是不要频繁地穿越C/Lua边界.
用户4766018
2022-08-19
8280
lua中删除元素
lua中删除元素常用办法就是t[k]=nil;table库还提供一个接口:table.remove();
用户4766018
2022-08-19
1.6K0
3dmax导出md5格式文件
修改node.rotation全改为node.transform.rotationPart
用户4766018
2022-08-19
4330
[CentOS]MySQL更改默认数据文件存储目录
socket=/var/lib/mysql/mysql.sock改为/home/data/mysql/mysql.sock
用户4766018
2022-08-19
2.8K0
【翻译】两种高性能I/O设计模式(Reactor/Proactor)的比较
这是05年的老文章,网上应该有人早就翻译过了,我翻译它仅仅为了学习Reactor/Proactor两种TCP服务器设计模式,顺便作翻译练习。
用户4766018
2022-08-19
5950
ActionScript中的vector和array
The Array class lets you access and manipulate arrays. Array indices are zero-based, which means that the first element in the array is [0], the second element is [1], and so on. To create an Array object, you use the new Array() constructor . Array() can also be invoked as a function. In addition, you can use the array access ([]) operator to initialize an array or access the elements of an array. You can store a wide variety of data types in an array element, including numbers, strings, objects, and even other arrays. You can create a multidimensional array by creating an indexed array and assigning to each of its elements a different indexed array. Such an array is considered multidimensional because it can be used to represent data in a table.
用户4766018
2022-08-19
3320
linux 网卡驱动升级
1、打开虚拟终端 2、ifconfig看有哪些网卡,如eth0, eth1之类的 3、ethtool -i eth0看驱动
用户4766018
2022-08-19
9.7K0
linux IO重定向
#include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include<assert.h>
用户4766018
2022-08-19
2.9K0
mysql innodb 性能相关参数
innodb_buffer_pool_size 如果用Innodb,那么这是一个重要变量。相对于MyISAM来说,Innodb对于buffer size更敏感。MySIAM可能对于大数据量使用默认的key_buffer_size也还好,但Innodb在大数据量时用默认值就感觉在爬了。 Innodb的缓冲池会缓存数据和索引,所以不需要给系统的缓存留空间,如果只用Innodb,可以把这个值设为内存的70%-80%。和 key_buffer相同,如果数据量比较小也不怎么增加,那么不要把这个值设太高也可以提高内存的使用率。
用户4766018
2022-08-19
5540
让Erlang服务器后台运行
erlang默认运行时是带有终端的,在开发过程中可以很方便的检查程序的bug,但在开发完成后,应该以后台的方式运行服务。
用户4766018
2022-08-19
1.3K0
CentOS安装erlang
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel(如果已经安装了这些就不用安装)
用户4766018
2022-08-19
9630
linux _InterlockedCompareExchange128的实现
#include <stdint.h> namespace types { struct uint128_t { uint64_t lo ; uint64_t hi ; } __attribute__ (( __aligned__ ( 16 ) )); } template < class T > inline bool cas ( volatile T * src , T cmp , T with ); template <> inline bool cas ( volatile types :: uint128_t * src , types :: uint128_t cmp , types :: uint128_t with ) { bool result ; __asm__ __volatile__ ( "lock cmpxchg16b %1\n\t" "setz %0" : "=q" ( result ) , "+m" ( * src ) , "+d" ( cmp . hi ) , "+a" ( cmp . lo ) : "c" ( with . hi ) , "b" ( with . lo ) : "cc" ); return result ; } int main () { using namespace types ; uint128_t test = { 0xdecafbad , 0xfeedbeef }; uint128_t cmp = test ; uint128_t with = { 0x55555555 , 0xaaaaaaaa }; return ! cas ( & test , cmp , with ); }
用户4766018
2022-08-19
3460
VC9: LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
用户4766018
2022-08-19
4530
点击加载更多
社区活动
【纪录片】中国数据库前世今生
穿越半个世纪,探寻中国数据库50年的发展历程
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档