Skip to content

Instantly share code, notes, and snippets.

View vrodic's full-sized avatar

Vedran Rodic vrodic

View GitHub Profile
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
CPU Family: 0x6
@vrodic
vrodic / gist:b26babf628a15df6fea3
Created March 1, 2015 19:17
Build 32bit Mesa on 64bit host (for 32bit game clients)
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
CFLAGS="-m32" CXXFLAGS="-m32" ./autogen.sh --prefix=/usr --libdir=/usr/lib32
#apt-get install libdrm-dev:i386
#apt-get install libgles2-mesa-dev:i386 libglu1-mesa-dev:i386 mesa-common-dev:i386 libegl1-mesa-dev:i386 libgl1-mesa-dev:i386
#apt-get install libfontconfig1-dev:i386 libfreetype6-dev:i386
#apt-get install libnl-dev libudev-dev:i386 libxml2-dev:i386 libxslt1-dev:i386
#apt-get install libegl1-mesa-dev:i386 libfontconfig1-dev:i386 libfreetype6-dev:i386 libgl1-mesa-dev:i386 libgles2-mesa-dev:i386 libglu1-mesa-dev:i386 libxcomposite-dev:i386 libxdamage-dev:i386 libxi-dev:i386 libxrandr-dev:i386 libxtst-dev:i386
#make clean
export CFLAGS="-m32 -O3 -mtune=native -march=native -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security"
@vrodic
vrodic / gist:6437312
Created September 4, 2013 13:58
Dota 2 wine/intel optimizations, patched against Wine git, details here: http://vrodic.blogspot.com/2013/08/dota-2-wine-optimization-for-intel-gpus.html
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 123e9b1..980c389 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2255,8 +2255,8 @@ BOOL context_apply_clear_state(struct wined3d_context *context, const struct win
* driver show that disabling blending when clearing improves the clearing
* performance incredibly. */
gl_info->gl_ops.gl.p_glDisable(GL_BLEND);
- gl_info->gl_ops.gl.p_glEnable(GL_SCISSOR_TEST);
- checkGLcall("glEnable GL_SCISSOR_TEST");
@vrodic
vrodic / gist:6249950
Created August 16, 2013 13:24
Dota 2 wine/intel optimizations, patched against Wine git 1825bddbff5db772cc82613bf854e25154bafbaf , details here: http://vrodic.blogspot.com/2013/08/dota-2-wine-optimization-for-intel-gpus.html
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index de36741..e5111e39 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -657,6 +657,7 @@ void device_clear_render_targets(struct wined3d_device *device, UINT rt_count, c
if (!clear_rect)
{
+ /*
if (render_offscreen)
@vrodic
vrodic / gist:6245046
Created August 15, 2013 21:24
Dota 2 Intel IvyBridge OpenGL
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
@vrodic
vrodic / gist:6235313
Created August 14, 2013 20:36
Dota 2 glretrace performance warnings on Intel IvyBridge HD 4000 GPU
1197: glDebugOutputCallback: Medium severity API performance issue 1, Recompiling fragment shader for program 6
1197: glDebugOutputCallback: Medium severity API performance issue 2, fragment color clamping 1->0
11125: glDebugOutputCallback: Medium severity API performance issue 1, Recompiling fragment shader for program 843
11125: glDebugOutputCallback: Medium severity API performance issue 2, fragment color clamping 1->0
11275: glDebugOutputCallback: Medium severity API performance issue 1, Recompiling fragment shader for program 6
@vrodic
vrodic / gist:6229887
Created August 14, 2013 10:37
my steam sysinfo
Processor Information:
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x3a
CPU Stepping: 0x9
CPU Type: 0x0
Speed: 3300 Mhz
4 logical processors
2 physical processors
HyperThreading: Supported
@vrodic
vrodic / gist:6229500
Created August 14, 2013 09:45
Dota 2 glretrace performance warnings on Intel IvyBridge
I've made a trace of Dota 2 with apitrace, resulting in multiple performance warnings per frame looking like this when doing glretrace on the resulting file.
824941: glDebugOutputCallback: Medium severity API performance issue 4, Using a blit copy to avoid stalling on 12b glBufferSubData() to a busy buffer object.
824957: glDebugOutputCallback: Medium severity API performance issue 4, Using a blit copy to avoid stalling on 128b glBufferSubData() to a busy buffer object.
824958: glDebugOutputCallback: Medium severity API performance issue 4, Using a blit copy to avoid stalling on 12b glBufferSubData() to a busy buffer object.
824971: glDebugOutputCallback: Medium severity API performance issue 12, Clear color unsupported by fast color clear. Falling back to slow clear.
@vrodic
vrodic / gist:6018149
Created July 17, 2013 06:41
Steam System Information
Processor Information:
Vendor: GenuineIntel
Speed: 2601 Mhz
4 logical processors
2 physical processors
HyperThreading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported