idom.me
使用代理同步谷歌项目时出现文件下载失败 - iDom
http://www.idom.me/articles/843.html
Posted on June 7, 2016. Failed to fetch file gs:/ chromium-gn/a68b194afb05d6a6357cf2e2464136ed7723c305 for src/buildtools/mac/gn. . Error: Command 'download from google storage - no resume - platform=darwin - no auth - bucket chromium-gn -s src/buildtools/mac/gn.sha1' returned non-zero exit status . Https:/ storage.googleapis.com/. Https:/ storage.googleapis.com/chromium-gn/a68b194afb05d6a6357cf2e2464136ed7723c305. Download from google storage. Chmod x ./gs. Downloading. https:/ xxx to xxx.
idom.me
开启V8的JavaScript调试服务 - iDom
http://www.idom.me/articles/848.html
Posted on July 29, 2016. 具体的调试协议内容可以参考这里 https:/ github.com/v8/v8/wiki/Debugging-Protocol. 其实旧版本的V8是自带JS调试服务的,只是因为Chrome没有用到这个模块,在大约是 3.26 版本之后就移除了。 放在了 https:/ github.com/domchen/V8Performace/tree/master/src/debug. DebugAgent: Enable("MyApp", 5959, true);. Npm install -g v8-inspector. 默认URL是: http:/ 127.0.0.1:8888/? V8-inspector - debug-port=7878 - debug-host=192.168.1.29. Larr; Previous Post. Next Post →.
idom.me
显示列表与脏矩形渲染 - iDom
http://www.idom.me/articles/841.html
Posted on May 21, 2016. Context.save(); context.clearRect(region.minX, region.minY, region.width, region.height); context.rect(region.minX, region.minY, region.width, region.height); context.clip(); / 在此绘制相关的显示对象. context.restore();. Larr; Previous Post. Next Post →.
idom.me
在Mac下使用libc++编译v8 - iDom
http://www.idom.me/articles/844.html
Posted on June 12, 2016. 支持c 11标准,系统里也还有之前的libstdc ,但它是一个固定的旧版本,不支持c 11标准。 Chrome v8 就是这样,默认的编译配置是依赖libstdc 的而不是 libc. Export CXX="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -std=c 11 -stdlib=libc " export LINK="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -std=c 11 -stdlib=libc " export GYP DEFINES="clang=1 mac deployment target=10.7" make native. 目前只找到使用 make 命令的这种方式可以生成 libc. Larr; Previous Post.
idom.me
一个最精简的MVC系统 - iDom
http://www.idom.me/articles/744.html
Posted on February 7, 2015. Package code.app { import code.module.sample.SampleController; /* * 控制器列表 * @author Dom */ public class ControllerList { /* * 构造函数 */ public function ControllerList() private var sampleController:SampleController = new SampleController(); /* * 启动所有控制器 */ public function start():void { sampleController.start(); } } }. Larr; Previous Post. Next Post →.
idom.me
AS3类在第一行报override错误解决方法 - iDom
http://www.idom.me/articles/732.html
Posted on November 29, 2014. 剧情经过是这样的 我们之前的多个项目,一直在用FB4.7开发,纯ActionScript AIR项目,FB4.7自然默认给你用新的编译器。 1020: 标记为 override 的方法必须覆盖另一方法。 Application.as /EgretLib/src/egret/ui/components 第 1 行 Flex 问题. Larr; Previous Post. Next Post →.
idom.me
V8中JS与C++性能测试对比 - iDom
http://www.idom.me/articles/845.html
Posted on June 20, 2016. 预先在JS端构造1000w组随机数据,每组数据四个数值,代表 x,y,width,height。 Var data = []; var i, t, x, y, width, height, index, start; for (i = 0; i SIZE; i ) { x = parseInt(Math.random() * 100); y = parseInt(Math.random() * 100); width = parseInt(Math.random() * 100); height = parseInt(Math.random() * 100); data.push(x, y, width, height); }. 分别在JS端和Native遍历这1000w组数据,执行Matrix.transformBounds(rect)方法以及transformBoundsNoField(x,y,width,height)函数。 从测试结果 1 与 2 对比可以看出JS端不读写属性会有约15%性能提升。 Larr; Previous Post.
idom.me
WebGL获取Context时的附加参数 - iDom
http://www.idom.me/articles/837.html
Posted on November 17, 2015. Var gl = canvas.getContext("webgl",{stencil:true});. PreserveDrawingBuffer: 是否保留缓冲区数据,如果你需要读取像素,或者复用绘制到主屏幕上的图像 实现脏矩形局部刷新 ,需要开启这个,否则浏览器在发生新的绘制操作的时候,有可能清空以前的数据。 Larr; Previous Post. Next Post →.
idom.me
TypeScript编译器增强版 - iDom
http://www.idom.me/articles/849.html
Posted on October 14, 2016. 正好最近TypeScript 2.0也发布了,借着升级引擎内置编译器的机会,我把这个功能从Egret 命令行里抽离出来做成了独立版。 除了自动排序,还加上其他几项附加功能,相当于原版 TypeScript 编译器的增强版 https:/ github.com/domchen/typescript-plus. 使用上完全兼容原版编译器,也是按照 tsc 项目的 API 风格去扩展的,额外增加的几个功能,参数开关默认都是关闭。 Npm install -g typescript-plus. Tsc-plus [input files] [options]. 选项,编译器就会优化掉只有一行代码调用的转发,直接用转发的目标方法作为 get/set 的方法体,上面的 TypeScript 文件开启这个参数后输出的 JavaScript 如下. Var Student = (function () { function Student() Object.defineProperty(Student.prototype, "name", { g...Var t...