Compile-time vs run-time polymorphism with C++

Опубликовано: 15 Май 2026
на канале: constref
5,171
157

In this video we go over runtime, virtual function based polymorphism, and then we look at how we can achieve polymorphic code using compile-time methods while avoiding any performance penalties due to virtual function dispatch.

The method presented here may be helpful when trying to optimize a game/engine main-loop, avoiding indirection due to virtual calls.