Skip to content

Instantly share code, notes, and snippets.

View gashtio's full-sized avatar

Nikola Vasilev gashtio

View GitHub Profile
@gashtio
gashtio / WaitDebugger.cpp
Created September 5, 2012 07:45
Wait for debugger to attach
while (!::IsDebuggerPresent())
{
::Sleep(100);
}
::DebugBreak();
@gashtio
gashtio / D3DPERF_SetOptionsTest.cpp
Created September 5, 2012 07:44
Simple application testing D3DPERF_SetOptions
#include <windows.h>
#include <d3d9.h>
#include <iostream>
#pragma comment(lib, "d3d9.lib")
int main()
{
::D3DPERF_SetOptions(1);
std::cout << "Good job!\n" << std::endl;
}