Skip to content

glmark2 GPU test (OpenGL & ES)

Frank Wu edited this page Sep 12, 2017 · 1 revision

Install glmark2

sudo apt-get update
sudo apt-get install git g++ build-essential pkg-config
sudo apt-get install libx11-dev libgl1-mesa-dev libjpeg-dev libpng-dev

cd ~/
git clone https://github.com/glmark2/glmark2.git

cd glmark2/
./waf configure --with-flavors=x11-glesv2
./waf build -j 4
sudo ./waf install

Run GPU test

glmark2-es2
glmark2-es2 --fullscreen
glmark2-es2 --off-screen

Result example

=======================================================
glmark2 2014.03
=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-T760
GL_VERSION: OpenGL ES 3.1 v1.r9p0
=======================================================
[build] use-vbo=false: FPS: 59 FrameTime: 16.949 ms
[build] use-vbo=false: true: 60 FrameTime: 16.667 ms
<snip>
=======================================================
glmark2 Score: 57
=======================================================

Disable V-Sync (option)

Edit xorg config, add Option "Dri2Vsync""FALSE" to /etc/X11/xorg.conf.d/20-modesetting.conf

Section "Device"
Identifier"Rockchip Graphics"
Driver"modesetting"
Option"AccelMethod""glamor"
Option"modesetting""2"
Option"Dri2Vsync""FALSE"
EndSection

Then reboot the system, let xserver loading new config.

Set CPU governor to ondemand (option)

Set to ondemand

echo ondemand | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_governor

Reset to interactive

echo interactive | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_governor

Result

Platform Tinker Board Tinker Board Competitor SBC Competitor SBC
Setting Default Best Default Best
CPU Governor interactive ondemand* ondemand ondemand
Driver ON ON OFF ON***
VSync ON OFF** 159 OFF
glmark2-es2 54 302 23 91
fullscreen 52 159 9 111
offscreen 336 470 32 211

* We need set TinkerOS’s CPU governor as same as Competitor SBC.

** TinkerOS default enable V-Sync technology to provide a smoother vision experience. V-Sync technology can prevent frame rate stuttering and screen tearing depend on the display device and GPU, software in use, and the nature of the video material.
But if we need to compare with Competitor SBC, we need to set the same setting with them.

*** Some platform do not load GL driver on default, because the GL driver may still be developing not official release.

Benchmark

Benchmark1

Benchmark2

Clone this wiki locally