Mox —
Not really a shocker that gcc is better at this than msvc :P I can't really picture yet how hashin…
Yes it will. But there are more advantages for hash - no need to deal with translation unit index…
Mox —
Wouldn't this be valid for my "real" counter code too? What is the reason for choosing a hash tab…
I have been in that position where I try look for information on what is the best way to do someth…
To solve TRANSLATION_UNIT_INDEX problem? Yes, that should solve that. Another options is to use it…
yes. The theory is that the compiler will save time by not opening the file and then detecting the…
skeeto —
I making the inline function static would also solve the problem. It would prevent the linker fro…
Same with hash solution. You do all this (chain/bucket traversal, collision resolving) inside "Ha…
Once you introduce a static, it doesn't matter how expensive the lookup is. That's the key thing.…
Clem —
Hello everyone. I'm currently working on some game engine and have been scratching my head quite a…
Oh, you're right. They are using WM_DEVICECHANGE window message to receive callback if there is de…
Thanks for the tip! It looks however like XInputGetCapabilities() is roughly the same expense, unl…
Mox —
Yes, my idea was that this eliminates the actual problem of the translation units that the origina…
Yes, you are right. It is know issue with XInput, that polling disconnected controllers takes sign…
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_UNIT_I…
Don't worry, I should have watched the next video. :blush:
Mox —
With Casey stating he is hesitant to keep using the COUNTER to keep track of the DebugRecords, I w…
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 memory…
A Fixed mem alloc is wasting the same kind of memory. Ok, In a void* you can store alot of differe…
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 differe…
undefined behavior Sounds like the compiler can do whatever it wants
I was looking at CDep tool at MollyRocket and I saw in the code macro guard at include site like t…
You are right I missed that point. if it was static there would be no problem. I feel like making…
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.