4 ms·
singeltons are rather common in game code, it's not that bad. What's wrong with ifdefs for platform specific code though? Alternative is to have different compi
by Keyframe 3y ago
singeltons are rather common in game code, it's not that bad. What's wrong with ifdefs for platform specific code though? Alternative is to have different compile-time paths.
- golergka 3y agoIn my experience (with gamedev) it often leads to your game silently breaking on platform you're not building it for. Proper CI will catch this, but it still makes the feedback loop longer.