r/GraphicsProgramming • u/M1VAN1 • 18d ago
CI/CD in Graphics programming
If someone experienced have any proper sources on CI/CD in graphics programming, I would like to read them. I'm really interesting in this, would like to read books/blogs, whatever.
Also curious about to hear any experience with it from real prod. I have some friends working as programmers and I hear that in big tech companies it's complicated thing, but those who works in small companies in small team said that they usually have really bad CI/CD
19
Upvotes
View all comments
1
u/standardofiron 14d ago
I actually have something that might be useful for you. I'm developing an open-source RTS game called Standard of Iron (https://github.com/djeada/Standard-of-Iron), written in C++ with Qt and OpenGL, and I've set up a fairly extensive CI pipeline using GitHub Actions. It automatically builds the game for Linux, Windows and macOS, runs automated tests, validates assets, checks code quality and produces downloadable game builds. The interesting part for graphics programming is that you don't necessarily need a physical GPU on your CI runner. On Linux, I use Xvfb and Mesa's software renderer (llvmpipe) to run the game in a virtual display and verify that the actual gameplay renderer works, including checking OpenGL compatibility and catching rendering or startup regressions. Of course, software rendering won't tell you everything about GPU-specific bugs, shader performance or driver compatibility, so for that I also have a separate frame-pacing workflow intended to run on reference hardware. You can also go further with automated screenshot comparisons, shader compilation checks and visual regression tests against reference images. As for CI/CD, what you're primarily looking for is probably CI, since with a native desktop game or graphics application you don't typically deploy every commit to production like you would with a web app. You can still have continuous delivery by automatically packaging builds, publishing GitHub releases or uploading builds to Steam, which I also have workflows for, but actually releasing a new version to players is a separate decision. I made a short video explaining my setup and how I automated my game builds with GitHub Actions: https://youtu.be/moLXdFzn6xU. Feel free to look through the .github/workflows directory in my repo and reuse whatever makes sense for your project. I think a lot of people underestimate how much you can automate even for graphics-heavy applications without having a dedicated GPU server running all the time.