love2d 的所有默认配置如下,禁止一些不用的模块,可以轻微加快速度。
2014-09-26 17:00
375 查看
function love.conf(t)t.title = "Untitled" -- The title of the window the game is in (string)t.author = "Unnamed" -- The author of the game (string)t.url = nil -- The website of the game (string)t.identity = nil -- The name of the save directory (string)t.version = "0.8.0" -- The LÖVE version this game was made for (string)t.console = false -- Attach a console (boolean, Windows only)t.release = false -- Enable release mode (boolean)t.screen.width = 800 -- The window width (number)t.screen.height = 600 -- The window height (number)t.screen.fullscreen = false -- Enable fullscreen (boolean)t.screen.vsync = true -- Enable vertical sync (boolean)t.screen.fsaa = 0 -- The number of FSAA-buffers (number)t.modules.joystick = true -- Enable the joystick module (boolean)t.modules.audio = true -- Enable the audio module (boolean)t.modules.keyboard = true -- Enable the keyboard module (boolean)t.modules.event = true -- Enable the event module (boolean)t.modules.image = true -- Enable the image module (boolean)t.modules.graphics = true -- Enable the graphics module (boolean)t.modules.timer = true -- Enable the timer module (boolean)t.modules.mouse = true -- Enable the mouse module (boolean)t.modules.sound = true -- Enable the sound module (boolean)t.modules.physics = true -- Enable the physics module (boolean)end----注意不能禁止love.filesystem和love模块
相关文章推荐
- android默认资源:防crash(不可能适配所有配置, 低版本) density可以不提供默认资源
- Python Numpy的一些操作可以极大的加快你的code运行速度
- Qt5.2.0 MinGW480 release静态版编译结果、过程及QtCreator配置分享(realfan的编译方法)(configure -h可以显示帮助)(静态编译mysql插件,需要做一些其它工作,机器上要有mysql)(不编译qtwebkit,就不用安装ActivePerl了)(用到 QMediaPlayer的编译办法)
- 【页面加速】配置Nginx加载ngx_pagespeed模块,加快网站打开的速度
- ASP中用Join和Array,可以加快字符连接速度的代码
- 【转】基于apache mod_vhost_alias模块的虚拟主机配置教程---方法似乎可以,留着以后备用
- Heritrix源码分析(三) 修改配置文件order.xml加快你的抓取速度
- 关于cocos2d框架的一些问题如下<转载资料有兴趣可以围观>
- struct2 访问WEB元素(request,session, application......)——分模块配置——默认Action
- Heritrix1.14源码分析(3) 修改配置文件order.xml加快你的抓取速度
- Zend Studio 8.0 加快代码提示速度、创建文件默认格式为 UTF-8、改变代码字体大小
- 利用iptables来配置linux禁止所有端口登陆和开放指定端口
- 百度文库的所有内容都可以不用财富值下载
- 在Remedy ARS的开发环境中为了加快开发的保存的速度,可以调整Cache-Mode为“1 ”
- apache linux安装脚本(可以加载所有模块)
- 使用会声会影X3加快渲染速度的一些经验
- 惊天发现!所有带摄像头的手机(不用上网)都可以免费收看电视
- Struts 2 配置拦截所有异常并显示为"系统模块正在升级中"
- 使用会声会影X3加快渲染速度的一些经验
- TabActivity可以显示实现多页显示效果,在xml布局文件中需要有一些特殊的配置属性