Quantcast
Channel: Bartek's coding blog
Browsing all 325 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Errata and a Nice C++ Factory Implementation

I've finally got my copy of "Effective Modern C++"! The book looks great, good paper, nice font, colors... and of course the content :)While skimming through it for the first (or second) time I've...

View Article


Image may be NSFW.
Clik here to view.

Persistent Mapped Buffers in OpenGL

It seems that it's not easy to efficiently move data from CPU to GPU. Especially, if we like to do it often - like every frame, for example. Fortunately, OpenGL (since version 4.4) gives us a new...

View Article


Image may be NSFW.
Clik here to view.

Persistent Mapped Buffers, Benchmark Results

In part 2 of the article about persistent mapped buffers I share results from the demo app.I've compared single, double and triple buffering approach for persistent mapped buffers. Additionally there...

View Article

Image may be NSFW.
Clik here to view.

Non Static Data Members Initialization

My short summary for non static data members initialization from modern C++. A very useful feature. Should we use it or not?IntroBasic exampleWhy usefulMore detailsAny negatives?Should you use it?Your...

View Article

Image may be NSFW.
Clik here to view.

Finding memory leaks with Deleaker

Since the beginning of January I got a chance to play with a nice tool that’s called Deleaker. Its main role, as can be easily decoded, is to find leaks in your native applications. I often had...

View Article


Image may be NSFW.
Clik here to view.

Flexible particle system - Renderer optimization

Finally, I managed to finish the adventure with my particle system! This time I’d like to share some thoughts about improvements in the OpenGL renderer.Code was simplified and I got little performance...

View Article

Image may be NSFW.
Clik here to view.

Vulkan

khronos.org/vulkanAt GDC 2015 in San Francisco, Khronos announced new API for graphics and compute, previously it was called glNext… but now the official name is “Vulkan”!I could not resist to write...

View Article

Image may be NSFW.
Clik here to view.

Soft Skills - Book Review

Programmers are not machines that just write code. We have feeling and emotions as well! ;) We all need to learn a lot of new things, sharpen the saw, focus, make good choices about our career path,...

View Article


Image may be NSFW.
Clik here to view.

Flexible Particle System - Summary

It’s been one year since the first posts about my particle system: a demo in March and then an introduction in April. Last time I wrote about renderer updates and this was the last planned post for the...

View Article


Image may be NSFW.
Clik here to view.

PDB Was Not Found - Linker Warning

You’ve just recompiled a 3rd party library in Visual Studio, copied the .lib file into a proper directory, added dependencies into your final project… recompiled and it worked nicely! Good. So now you...

View Article

Image may be NSFW.
Clik here to view.

Applying the Strategy Pattern

Let’s look at the following problem: We are designing a drawing application. We want some objects to be automatically scaled to fit inside parent objects. For example: when you make a page wider,...

View Article

Image may be NSFW.
Clik here to view.

OpenGL SuperBible 7th

Several moths ago I’ve noticed there would be another version of OpenGL Superbible. This time the 7th edition! Without much thinking I quickly I pre-ordered it. Around two weeks ago the book appeared...

View Article

Image may be NSFW.
Clik here to view.

Visual Studio slow debugging and _NO_DEBUG_HEAP

Verify you assumptions about tools you use!Some time ago I was tracing a perf problem (UI code + some custom logic). I needed to track what module was eating most of the time in one specific scenario....

View Article


Image may be NSFW.
Clik here to view.

C++ Status at the end of 2015

Maybe I’ll be boring with this note, but again I need to write that this was another good year for C++! Here’s a bunch of facts:Visual Studio 2015 was released with great support for C++14/17 and even...

View Article

Image may be NSFW.
Clik here to view.

Simple Performance Timer

When you’re doing a code profiling session it’s great to have advanced and easy to use tools. But what if we want to do some simple test/benchmark? Maybe a custom code would do the job?Let’s have a...

View Article


Image may be NSFW.
Clik here to view.

Micro benchmarking libraries for C++

After I finished my last post about a performance timer, I got a comment suggesting other libraries - much more powerful than my simple solution. Let’s see what can be found in the area of benchmarking...

View Article

Image may be NSFW.
Clik here to view.

Revisiting An Old Benchmark - Vector of objects or pointers

Around one and a half year ago I did some benchmarks on updating objects allocated in a continuous memory block vs allocated individually as pointers on the heap: Vector of Objects vs Vector of...

View Article


Image may be NSFW.
Clik here to view.

Notes on C++ SFINAE

This time I’d like to tackle a bit more complex problem: SFINAE. I’m not using this paradigm on a daily basis, but I’ve stumbled across it several times and I thought it might be worth trying to...

View Article

Image may be NSFW.
Clik here to view.

SFINAE Followup

As it appears, my last post about SFINAE wasn’t that bad! I got a valuable comments and suggestions from many people. This post gathers that feedback.Using modern...

View Article

Image may be NSFW.
Clik here to view.

Nice C++ Factory Implementation 2

The original code from my previous post about “nice factory” did not work properly and I though there is no chance to fix it. It appears, I was totally wrong! I got a really valuable feedback (even...

View Article
Browsing all 325 articles
Browse latest View live