Profile cover photo
Profile photo
Gene Chen
20 followers
20 followers
About
Gene's posts

Post has attachment

Post has attachment

Post has attachment
the new ipad
Photo

Post has attachment

Post has attachment
My Simple Shader Editor for Learning
Photo

Post has attachment

Post has shared content
Cool!!!
Пробую Sublime Text 2 в паре с #Unity3D.
По ссылке решение для подсветки ключевых слов и синтаксиса в целом для C#.
Пока автокомплит не нашёл как включить. Похоже придётся дописывать.
Ещё надо указать редактор в настройках: Edit->Preferences...->External Tools->External Script Editor, и выбираем sublime.
http://www.jacobpennock.com/Blog/?p=490

Post has shared content
Regular expressions are slow? No, not always :)

I need to check if a #Stage3D rendering context has been lost/disposed during each frame so I've been testing the fastest way to do that. There are a few options available but they all involve a driverInfo string search.

// option A
info.toLowerCase().indexOf( "disposed" ) >= 0

// optionB
info.toLowerCase().search( "disposed" ) >= 0

// optionC
const DISPOSED:RegExp = /disposed/i
info.search( DISPOSED ) >= 0

I executed those a few times within a loop to get their times and these are the normalised results ...

A = 0.2790697674418605
B = 1.0
C = 0.186046511627907

The regular expression search is clearly the fastest.

Post has attachment
My 2D render engine based on flash Stage3D. Simply but useful.
Photo

Post has shared content
wonderful!!!!!!
A new sneak peak at Minko's ShaderLab: the "share" feature will make it possible to embed shaders on any web page "à la Youtube". Enjoy!
Wait while more posts are being loaded