在0531的版本中opengles默认是没有打开的,有些粉丝为了按照帖子,可吃了不少苦,原因很简单,sunxi最后更新了mail400驱动库,导致粉丝不能完美的按照帖子走。
在0906的版本中粉丝们再也不用吃这些苦了,opengles默认是打开的,而且很稳定。下面我就教大家怎么来测试你手上的板子:
进入桌面之后,打开终端,执行以下命令:
- [mw_shl_code=c,true]glmark2-es2 -h[/mw_shl_code]
[mw_shl_code=c,true]A benchmark for Open GL (ES) 2.0
Options:
-b, –benchmark BENCH A benchmark to run: ‘scene(: opt1=val1)*’
(the option can be used multiple times)
-f, –benchmark-file F Load benchmarks to run from a file containing a
list of benchmark descriptions (one per line)
(the option can be used multiple times)
–validate Run a quick output validation test instead of
running the benchmarks
–frame-end METHOD How to end a frame [default,none,swap,finish,readpixels]
–off-screen Render to an off-screen surface
–visual-config C The visual configuration to use for the rendering
target: ‘red=R:green=G:blue=B:alpha=A:buffer=BUF’.
The parameters may be defined in any order, and any
omitted parameters assume a default value of ’1′
–reuse-context Use a single context for all scenes
(by default, each scene gets its own context)
-s, –size WxH Size of the output window (default: 800×600)
–fullscreen Run in fullscreen mode (equivalent to –size -1x-1)
-l, –list-scenes Display information about the available scenes
and their options
–show-all-options Show all scene option values used for benchmarks
(only explicitly set options are shown by default)
–run-forever Run indefinitely, looping from the last benchmark
back to the first
–annotate Annotate the benchmarks with on-screen information
(same as -b :show-fps=true:title=#info#)
-d, –debug Display debug messages
-h, –help Display help[/mw_shl_code]
可以看出相应参数的意思。这里我给大家介绍两个很有用的参数
1,–annotate 使用这个参数可以看到测试程序的帧率
2,–run-forever 这个参数可以让测试程序一直运行
大家拿到板子之后都可以测试板子的性能,相当不错。
|