Profile cover photo
Profile photo
Felix Klinge
56 followers -
Tit for tat.
Tit for tat.

56 followers
About
Posts

Post has attachment
Keep it simple
unsigned char alphaValue = GetAlphaValue(pixelIndex);
if (alphaValue > 250)
{
PutPixel();
}
if (alphaValue < 5)
{
return;
} asdasdasdas The above code is a trivial optimization for a 2D software renderer I currently write for a c...
Add a comment...

Post has attachment
Don't use volatile variables for busy waiting
I'm currently working on a multithreaded renderer as a replacement for the current rendering API in the K15 Engine which was always kind of janky. The multithreaded renderer works simular to how Vulkan supports multithreaded applications. Several threads ca...
Add a comment...

Post has attachment
Readability Snippet #1 : Pass by reference
When passing parameters by reference in C/C++ you basically have 2 options to do so: Snippet #1: Pass the reference of the variable you want to pass to a function Example: void foo( int & myIntParameter)
{ //... do something with myIntParameter } int mai...
Add a comment...

Post has attachment
Weekend prototype #1 C/C++ Enum Parsing
This weekend I prototyped a command line tool written in Lua for parsing C/C++ files to get a list of enums used in the codebase that has been parsed. Once the codebase has been parsed, the tool will create a new header file (or rewrite an existing one) and...
Add a comment...

Post has attachment
C++ Build Preprocessing Thoughts
Something that's been on my mind lately is how you could automatize many otherwise tedious and repetitive programming tasks by using custom build preprocessing tools. If you're familiar with Qt's meta object compiler (moc) then you should have a good unders...
Add a comment...

Post has attachment
Lua IDE Decoda is now open source and free
Decoda is an IDE for the scripting language Lua. It's finally free and open source. Be sure to download it now if you're working with Lua as it is by far the best Lua IDE out there. http://unknownworlds.com/decoda/
Add a comment...

Post has attachment

Post has attachment
Memory management 2/2
Wow after a year I finally manage to write this post. Well, as promised we'll take a look at some memory management implementations (stack allocator, block allocator, pool allocator) Motivation Ok, so what's the motiviation behind all this? Why would we eve...
Add a comment...
Wait while more posts are being loaded