On Thu Oct 14, 2021 at 05:21:19PM -0600, Thomas Frohwein wrote: > Hi, > > Attached is a new port of glmark2. This is an OpenGL benchmark. In its > default configuration, it runs a series of scenes and ends in a score > that can be used to compare performance of 3D-accelerated graphics > between different machines, or also with the performance on other > platforms (Linux...). At this point, it builds only with x11-* flavors, > not drm-* (which needs udev). > > I built it and ran on my Intel i7-10700 (UHD 630 GPU) with 1920x1080 > size: > > $ glmark2 -s 1920x1080 > > I get a score of 665 (fvwm2, picom compositor disabled). This seems to > be right in the middle of reported results of other configurations with > UHD 630 graphics [1]. > > I can't figure out where '-O0' in the build comes from, for example: > > [10/140] c++ -Isrc/libcommon-gl.a.p -Isrc -I../glmark2-2021.02/src > -I../glmark2-2021.02/src/scene-ideas -I../glmark2-2021.02/src/scene-terrain > -I../glmark2-2021.02/src/glad/include -I../glmark2-2021.02/src/libmatrix > -I/usr/local/include -I/usr/local/include/libpng16 -I/usr/X11R6/include > -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch > -Wnon-virtual-dtor -std=c++14 -O0 '-DGLMARK_VERSION="2021.02"' > '-DGLMARK_DATA_PATH="/usr/local/share/glmark2"' -O2 -pipe -fPIC > -DUSE_EXCEPTIONS -DGLMARK2_USE_GL -MD -MQ > src/libcommon-gl.a.p/libmatrix_mat.cc.o -MF > src/libcommon-gl.a.p/libmatrix_mat.cc.o.d -o > src/libcommon-gl.a.p/libmatrix_mat.cc.o -c > ../glmark2-2021.02/src/libmatrix/mat.cc > > I looked through the meson.build files and meson.port.mk, to no avail. > > It comes with man pages glmark2(1) and glmark2-es2(1). > > ok? > > [1] https://openbenchmarking.org/test/pts/glmark2
Regardless of O0 it works quite well: glmark2 ======================================================= glmark2 2021.02 ======================================================= OpenGL Information GL_VENDOR: Intel GL_RENDERER: Mesa Intel(R) HD Graphics 530 (SKL GT2) GL_VERSION: 4.6 (Compatibility Profile) Mesa 21.1.8 ======================================================= [build] use-vbo=false: FPS: 3313 FrameTime: 0.302 ms [build] use-vbo=true: FPS: 4064 FrameTime: 0.246 ms [texture] texture-filter=nearest: FPS: 3743 FrameTime: 0.267 ms [texture] texture-filter=linear: FPS: 3750 FrameTime: 0.267 ms [texture] texture-filter=mipmap: FPS: 3694 FrameTime: 0.271 ms [shading] shading=gouraud: FPS: 3316 FrameTime: 0.302 ms [shading] shading=blinn-phong-inf: FPS: 3310 FrameTime: 0.302 ms [shading] shading=phong: FPS: 3085 FrameTime: 0.324 ms [shading] shading=cel: FPS: 3030 FrameTime: 0.330 ms [bump] bump-render=high-poly: FPS: 2043 FrameTime: 0.489 ms [bump] bump-render=normals: FPS: 4052 FrameTime: 0.247 ms [bump] bump-render=height: FPS: 4018 FrameTime: 0.249 ms [effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 2400 FrameTime: 0.417 ms [effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 1308 FrameTime: 0.765 ms [pulsar] light=false:quads=5:texture=false: FPS: 3506 FrameTime: 0.285 ms [desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 1340 FrameTime: 0.746 ms [desktop] effect=shadow:windows=4: FPS: 2361 FrameTime: 0.424 ms [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 506 FrameTime: 1.976 ms [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 503 FrameTime: 1.988 ms [buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 984 FrameTime: 1.016 ms [ideas] speed=duration: FPS: 3143 FrameTime: 0.318 ms [jellyfish] <default>: FPS: 2369 FrameTime: 0.422 ms [terrain] <default>: FPS: 257 FrameTime: 3.891 ms [shadow] <default>: FPS: 2321 FrameTime: 0.431 ms [refract] <default>: FPS: 569 FrameTime: 1.757 ms [conditionals] fragment-steps=0:vertex-steps=0: FPS: 3078 FrameTime: 0.325 ms [conditionals] fragment-steps=5:vertex-steps=0: FPS: 3131 FrameTime: 0.319 ms [conditionals] fragment-steps=0:vertex-steps=5: FPS: 3092 FrameTime: 0.323 ms [function] fragment-complexity=low:fragment-steps=5: FPS: 3104 FrameTime: 0.322 ms [function] fragment-complexity=medium:fragment-steps=5: FPS: 3143 FrameTime: 0.318 ms [loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 3119 FrameTime: 0.321 ms [loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 3125 FrameTime: 0.320 ms [loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 3136 FrameTime: 0.319 ms ======================================================= glmark2 Score: 2664 =======================================================