Originally Posted by
DarthTon
You don't event have to call it from hook, just copy TLS slots from main thread to your before making call to EventSetTimer.
EventSetTimer is shit. I wrote a small timer dispatcher myself:
https://code.google.com/p/d3dshark/s...erDispatcher.h
Just hook into the mainthread loop and call DispatchTimers every frame.
Also you shouldn't copy TLS slots because EventSetTimer is probably not threadsafe.
Code:
myTimer.AddTimer(0, [=] (const Utils::STimerDispatchEvt&) {
std::cout << "this is getting called every 300 ms..." << std::endl;
return 300;
});