Mox Wouldn't this be valid for my "real" counter code too?
Yes it will. But there are more advant…
cmuratori Once you introduce a static, it doesn't matter how expensive the lookup is. That's the…
I have been in that position where I try look for information on what is the best way to do somet…
To solve TRANSLATION_UNIT_INDEX problem? Yes, that should solve that.
Another options is to use …
yes. The theory is that the compiler will save time by not opening the file and then detecting th…
I believe making the inline function static would also solve the problem. It would prevent the li…
Mox After that my solution will have 'perfect' indexing, while the hash will at the least have em…
Once you introduce a static, it doesn't matter how expensive the lookup is. That's the key thing…
Hello everyone.
I'm currently working on some game engine and have been scratching my head quite…
Compression-oriented programming
Perspective Texture Mapping
The Old New Thing (Raymond Chen)
Oh, you're right. They are using WM_DEVICECHANGE window message to receive callback if there is d…
Thanks for the tip!
It looks however like XInputGetCapabilities() is roughly the same expense, u…
Yes, my idea was that this eliminates the actual problem of the translation units that the origin…
Yes, you are right. It is know issue with XInput, that polling disconnected controllers takes sig…
I have been doing my own experiments using __rdtsc() after learning about it on HMH (thanks Casey…
My understanding why Casey want's to avoid __COUNTER__ is because it requires using TRANSLATION_U…
Don't worry, I should have watched the next video. :blush:
With Casey stating he is hesitant to keep using the __COUNTER__ to keep track of the DebugRecords…
Awesome!! Love it!
That episode is my favorite :)
This is a pretty great idea...
- Casey
Yes, it's only wasting memory. But not using it. There's a big difference there. Allocating memor…
A Fixed mem alloc is wasting the same kind of memory.
Ok, In a void* you can store alot of differ…
Every render piece takes different amount of memory. By using fixed array you'll be wasting a lot…
I know that Casey doesnt like to do mallocs, callocs, new .... , thats fine.
But whats the diffe…
aameen951
I don't know what they mean by "undefined"?
Does it mean that the compiler doesn't nee…
I was looking at CDep tool at MollyRocket and I saw in the code macro guard at include site like …
Mox But if it really made it static the problem should not exist. Because then the translation un…
I've been away for a little while. Appreciate the new posts and will update the list accordingly.…
Ah totally got the math wrong there, but I think I do get it now, thanks a lot.
Looks like g++ is doing the same. (Wrote a simple app to reproduce)
No warning is generated
Acco…