I am implementing an application with different code codes, which should be selected once at startup, and then fixed forever for this execution, for example, by choosing the rendering path D3D11 or D3D9.
Obviously, I don't want to duplicate all my other code.
Is runtime inheritance (without virtual inheritance) a fair solution? I don't want to waste a ton of performance creating a virtual search when the type has been fixed long ago. Not only that, but it makes me nervous that functions cannot be inlined and regardless of whether it affects RVO and NRVO, etc. Am I just worried about this?
Puppy source share