【實用程式庫與試用程式app】Compare Sprite Draw Method|最夯免費app

【實用程式庫與試用程式app】Compare Sprite Draw Method|最夯免費app

分享好友

【免費程式庫與試用程式App】Compare Sprite Draw Method-APP點子

This app is targeted at developers, or anyone curious about performance differences between OpenGL and Canvas. Specifically, it measures the performance of drawing 2D sprites explicitly using OpenGL ES 2.0 with a hybrid of Java and C, and drawing 2D sprites using Canvas with Java.

When you are done running a test, you can see a benchmark analysis of the performance by pressing the device's back button.

It is similar to Sprite Method Test by Chris Pruett, but it is updated for OpenGL ES 2.0. His Sprite Method Test runs the outdated ES 1.0, and is broken on Jelly Bean (because of tripple buffering).

This app works on all devices which support OpenGL ES 2.0.

This is ad-free and nag-free.

More details:

Specifically, this app measures the performance of drawing 2D sprites explicitly using OpenGL ES 2.0 with a hybrid of Java and C, and drawing 2D sprites using Canvas with Java.

On every frame:

The background color shifts slightly, pulsing between red and white.

【免費程式庫與試用程式App】Compare Sprite Draw Method-APP點子

Each sprite moves a random (Gaussian) amount. If the center of a sprite goes over an edge of the screen, the sprite moves to a random screen location.

The Canvas test uses a SurfaceView and Canvas.drawBitmap(). All the calculations are done in Java (using Random.nextGaussian() and Random.nextFloat()) on a float[].

The OpenGL ES 2.0 tests use a GLSurfaceView in Java. Calculation is done in C (using drand48() and an inline C equivalent of Java's Gaussian algorithm) on a native float[]. Drawing is also done in C, using glDrawArrays(GL_POINTS, ...). C (NDK) methods are called every frame from Java through the JNI.

All tests have the identical overhead of profiling operations in Java.

Statistics:

The FPS information is about when frames are actually posted to the screen (technically, the SurfaceFlinger).

The Draw information is about the time it takes to issue (and glFlush() + glFinish(), in the OpenGL test) the drawing commands. It does not count the time to actually flip screen buffers.

【免費程式庫與試用程式App】Compare Sprite Draw Method-APP點子

The Push information (VBO only) is about the time it takes to push the vertex data to the GPU buffer. This will often be <.5ms (which rounds to 0.000s) per frame. When using the non-VBO OpenGL test, this time is essentially included in the draw time instead. In practical applications, it might take longer to push data to the GPU. This example contains only one VBO (or Vertex array) with 2 floats per sprite. Practical applications would have more data (such as size and texture information).

The Calc information is about the time it takes to calculate a frame's background color and the new position of each sprite. When JIT is enabled, calculation time is comparable between the Java (Canvas) test and the native (Open GL) tests, but with JIT disabled, Java suffers a significant penalty.

【免費程式庫與試用程式App】Compare Sprite Draw Method-APP點子

免費玩Compare Sprite Draw Method APP玩免費

免費玩Compare Sprite Draw Method App

Compare Sprite Draw Method APP LOGO

Compare Sprite Draw Method LOGO-APP點子

Compare Sprite Draw Method APP QRCode

Compare Sprite Draw Method QRCode-APP點子
熱門國家系統支援版本費用APP評分上架日期更新日期
未知Android
Google Play
1.0.0
App下載
免費
1970-01-012015-04-23
分享app
上一個APP
下一個APP

高評價程式庫與試用程式App推薦

EXO小胡子主题锁屏

EXO成员是由鹿晗、吴亦凡、吴世勋、张艺兴、边伯贤、金钟大、朴灿烈、金珉硕、金俊勉、都暻秀、黄子韬、金钟仁组成。EXO小胡子主题锁屏,设计精美,解锁更惊艳!长按中间一副图片即可展现惊艳效果,下拉中间的图片即可解锁,结合完美解锁音效,还有配套的桌面壁纸,让锁屏和桌面更完美的结合在一起,主题功能介绍:1 …
浪漫法国主题锁屏

浪漫的法国,浪漫的铁塔,神秘的古堡,独有的风车。一场说走就走的旅行,就从这里开启吧!锁屏画面唯美浪漫,还可更换背景,更有完美解锁音效,还有配套的桌面壁纸,让锁屏和桌面更完美的结合在一起,主题功能介绍:1、重力感应锁屏;2、动态天气,八种天气,3D全方位展示;3、粒子引擎,火焰、波纹、雨滴,逼真特效; …
乐动锁屏

你的锁屏够独特么?你的锁屏够有趣么?如果你已经厌倦,乐动锁屏将是你最好的选择!特色:1、每日更新锁屏产品,让你天天都有新花样2、自然、动漫、美女……总有一款适合你的锁屏类型3、提供快捷便利的侧边栏功能,方便获取你想要的内容4、游戏+锁屏,你觉得这个创意如何5、花哨 ≠ 费电,多达几百处的技术革新,帮 …
隐藏图片

还在担心跟别人的照片会被女朋友/男朋友看到引起误会吗?还在担心同事借用手机的时候翻看到您的私密照片吗?有了隐藏照片,您的担忧将不再是担忧。使用隐藏照片,一键隐藏您的私密照片,从此不再害怕照片“惹出祸”。手机上的自拍,合照,旅游照,亲密照,记事照,都有照片只要你想都能隐藏!免費玩隐藏图片 APP玩免費 …
美少女九宫格锁屏

欧美非主流治愈系主题,牵动你的心!1、配套壁纸:详情界面往上拖动,点击桌面的配套的壁纸,海量高清壁纸随你喜欢。2、锁屏安全:在设置中,您还可以搭配九宫格和密码锁屏一起使用,增添你爱机安全。3、音乐播放器:在锁屏状态下,手指往上滑,即可轻松听音乐咯。更有语音解锁,功能多多,期待你的选择!免費玩美少女九 …
恩典爱情主题锁屏

恩典爱情主题锁屏是目前很受用户欢迎的一款软件哦!更是一键设为锁屏的利器,只需轻轻一点设为锁屏,手机顷刻变身花样美机哦!纯手工编译制作而成,画面最精致,实用最简单,电量最节省!此锁屏还包含以下功能:1、随机切换,每次开屏展现不一样的锁屏样式;2、快捷工具,锁屏上滑,数据流量、wifi、手电筒、清内存, …