惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
爱范儿
爱范儿
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
有赞技术团队
有赞技术团队
博客园_首页
T
The Blog of Author Tim Ferriss
T
Tailwind CSS Blog
V
Visual Studio Blog
Jina AI
Jina AI
博客园 - Franky
量子位
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
aimingoo的专栏
aimingoo的专栏
M
MIT News - Artificial intelligence

博客园 - appleseed

搭建一个typescript下的webgl写代码环境。 Unity3d 小游戏从入门到??? Unity3d 小游戏详解 linux随笔 使用public/private key让putty(ssh)自动登录(以及linux上使用密钥做ssh自动登陆) texturetool 3d专业术语 Molehill 转 降频的时候处理方法 [转] 使用Duff's Device算法优化for循环 AI笔记 as3对象池研究 启动GPU加速的方法 恋爱秘籍 .... ..... AS3位运算
转 [教程] [Lii]最小帧速下的强制渲染——自制图像引擎的同学看...
appleseed · 2011-02-03 · via 博客园 - appleseed

var lii:URLLoader = new URLLoader();

lii.addEventListener(ProgressEvent.PROGRESS,test);

addEventListener(Event.ENTER_FRAME,init);

stage.addEventListener(Event.RENDER,render);

var url:String  = "http://flashdn-nctalk.ktics.co.kr/BnS_20091127/BNS_FullMovie_download.zip";

var aone:Sprite = new Sprite();

aone.graphics.beginFill(0xFF0000);

aone.graphics.drawRect(0,0,100,100);

aone.graphics.endFill();

aone.x = aone.y = 100;

addChild(aone);

function init(e:Event):void {

        lii.load(new URLRequest(url));

        stage.frameRate = 0.0000001;

        removeEventListener(Event.ENTER_FRAME,init);

}

function test(e:ProgressEvent):void {

        aone.x +=.1;

        aone.rotation += 1;

        stage.invalidate();

        stage.quality = StageQuality.HIGH;

}

function render(e:Event):void {

        trace("render");

        //不会触发render事件的渲染

}

trace(1 / 0.0000001 / 60 / 60,"小时/帧") //2777.777777777778 小时/帧