C++ Game Performance Workshop at FIU: What Happens When More Enemies Spawn?


A player enters the game. Enemies spawn and start moving toward them. The behavior is easy to follow, which makes it a good place to ask a bigger question. What happens to performance as more enemies show up? At AVG Guild’s November C++ game performance workshop at Florida International University, an industry expert with more than eight years of experience used that example to explore why gameplay code slows down and how to prepare it for production.
The C++ Game Performance Workshop Started With a Student Request
FIU students asked AVG Guild to cover game programming and optimization. We brought in an industry expert who could walk them through the decisions developers face when a gameplay feature works and starts to cost more processing time as the game grows.
The player-and-enemy example gave everyone something concrete to follow. Each enemy had to spawn and move toward the player. As the number of enemies grows, so can the amount of work the game does to keep that behavior running. With a familiar gameplay scenario, students could focus on what the code was doing and why those costs could add up.
Finding the Slowdown Before Changing the Code
We explored common coding pitfalls that can hurt performance and discussed different ways to address them. The example gave us a way to think about questions that come up in production:
Where does the amount of work grow as more enemies spawn?
Which operations need to happen repeatedly, and which could happen less often?
How can we reduce the cost of an operation while preserving the intended gameplay?
Those questions help narrow down where a change can make a difference. They also connect optimization to what players experience. The enemies should still spawn and approach the player as intended, even when the code behind that behavior changes. That was the production challenge at the heart of the workshop.
Making Time for Students’ Questions
Our instructor stayed after the session to listen and answer students’ questions. That extra time gave students room to work through the reasoning behind an optimization and ask how it might apply to code they write themselves.
Both November workshops grew out of topics FIU students brought to AVG Guild. One followed a character from Maya into Unreal Engine. This one followed gameplay code from a working example toward a production-ready implementation. In both sessions, students had direct access to an experienced professional who took their questions seriously and stayed to talk through the answers.
Support the AVG Guild!
Your donation helps us maintain our website and blog, cover administrative fees, and continue hosting events that unite Miami’s animation, VFX, and gaming community.
Sponsors






Comments