
Read Gamepads With the SDL Gamepad API
Detect controllers, read buttons, sticks and triggers with the SDL 3.2 gamepad API in C, apply dead zones, handle hot-plugging and add rumble.
OpenGL, Vulkan, Apple Metal, CUDA and OpenCL: graphics pipelines, compute kernels, shaders and GPU memory, from the first triangle to a tuned kernel.

Detect controllers, read buttons, sticks and triggers with the SDL 3.2 gamepad API in C, apply dead zones, handle hot-plugging and add rumble.

Add Dear ImGui 1.91 to a GLFW 3.4 and OpenGL 3.3 program in C++, wire the two backends, draw a debug window with sliders, and stop input leaking to the scene.

Build a game loop in C with GLFW 3.4 that updates physics at a fixed 60 Hz step, renders at any rate, and interpolates between states for smooth motion.

Keep the OpenGL viewport and projection correct when a GLFW 3.4 window resizes, using the framebuffer size callback and the window size versus pixel size rules.

Create an OpenGL 3.3 core window and context with SDL 3.2 in C, load functions with glad, handle the quit event, and clear the screen each frame.

Open a window with GLFW 3.4 in C, run an event loop, and read the keyboard through a key callback and through polling with glfwGetKey.

Ask the CUDA runtime for a block size that maximizes theoretical occupancy with cudaOccupancyMaxPotentialBlockSize, and learn why you must still time it.

Build with -g -G, set breakpoints inside a kernel, switch focus between blocks and threads, inspect variables and use conditional breakpoints with cuda-gdb.

Run compute-sanitizer with memcheck, racecheck, initcheck and synccheck to catch out-of-bounds accesses, shared memory races, leaks and uninitialized reads.

Label phases of a CUDA program with NVTX push and pop ranges, the C++ scoped_range helper and domains, so Nsight Systems shows your names beside the kernels.

Run ncu on one kernel, pick sections like SpeedOfLight and WarpStateStats, read the results and follow the rules for turning counters into a specific fix.

Capture a CUDA timeline with nsys profile, read kernel, copy and API rows, find gaps and serialized streams, and print summary tables from the command line.
We send one email when a new post is published. No spam.