The author recounts attending CppCon 2014 and giving a talk on how Ubisoft Montreal develops games for multicore, explaining that their game engines build on three common threading patterns and use custom concurrent objects optimized with atomic operations similar to C++11's low-level atomic library. Notable attendees like Michael Wong and Lawrence Crowl, who authored the C++11 atomic operations section, chimed in during the talk. The author also offers corrections, clarifying that Microsoft's x86 compiler treats volatile variables specially (explaining the absence of compiler reordering bugs) and proposing an assert-based macro to help enforce single-threaded usage of lock-free data structures.
Last month, I attended CppCon 2014 in Bellevue, Washington. It was an awesome conference, filled with the who’s who of C++ development, and loaded with interesting, relevant talks. It was a first-year conference, so I’m sure CppCon 2015 will be even better. I highly recommend it for any serious C++ developer.
While I was there, I gave a talk entitled, “How Ubisoft Montreal Develops Games For Multicore – Before and After C++11.” You can watch the whole thing here:
To summarize the talk:
Keep reading
Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.
AI summaryThe article explains the hidden compile-time algorithm that every C++ compiler uses to resolve a function call, which the author was motivated to understand after repeatedly encountering confusing errors about 'overloads with similar conversions.' It walks through the three main phases of the process—name lookup (including argument-dependent lookup), template argument deduction and substitution (introducing SFINAE), and overload resolution—using a concrete example to show how candidates are found and narrowed down. The author argues that understanding how these steps fit together is especially valuable for programmers developing libraries who combine multiple C++ features.
AI summaryThis post reviews the source code of Flap Hero, a small C++ game built without an existing game engine, explaining how it is organized using the Plywood framework and how it differs from larger game projects. The author evaluates the deliberate omission of typical engine subsystems—abstract scene representation, a shader manager, a physics engine, and an asset pipeline—rating each choice as OK, Good, or Bad based on the trade-offs involved. Overall, the article suggests Flap Hero is a valuable learning resource for novice and intermediate game developers, though some simplifications (like hand-managed shaders and no asset pipeline) proved disadvantageous.
AI summaryThe author has released Flap Hero, a free, open source Flappy Bird clone written entirely in C++, with MIT-licensed source code and public domain assets available on GitHub. The game was created to promote Plywood, a module-oriented open source C++ framework (not a game engine) that integrates third-party libraries like Assimp, SoLoud, stb, and GLFW through its workspace and built-in modules. Flap Hero exemplifies the lean, 'handmade' software style Plywood is designed to support, and the author plans future work such as a GUI build manager, with a source code review to follow in the next blog post.
AI summaryThe article describes how the open-source Plywood C++ framework automatically detects text file formats, addressing the inherent ambiguity of encodings like UTF-8, UTF-16 (with or without BOM), and Windows-1252, along with varying line endings. Plywood examines the first 4KB of a file, checks for valid UTF-8 decoding, and scores alternative encodings using heuristics based on whitespace, ASCII characters, and decoding errors. The author benchmarks this approach against a 50-file test suite, noting that editors like Notepad++, Sublime Text, VS Code, and Windows Notepad achieve comparable detection rates, and invites contributions to improve support for formats like Shift JIS on GitHub.
AI summaryThe article introduces the I/O system of Plywood, an open-source C++ framework, positioning it as a modern alternative to the decades-old standard C and C++ runtime I/O libraries. It explains core concepts such as the buffered OutStream and StringWriter classes, adapter-based chaining for newline conversion and character encoding (e.g., writing a UTF-16 file from UTF-8 input), and buffered text reading with InStream and StringReader, illustrated through code examples. The author also highlights design decisions like OutStream objects not being thread-safe, requiring explicit creation via StdOut::binary() or StdOut::text(), and Plywood's general preference for working with UTF-8 text internally.