Fyrox icon indicating copy to clipboard operation
Fyrox copied to clipboard

Feature flags for 2d and 3d

Open martin-t opened this issue 4 years ago • 1 comments

I think putting big deps like rapier2d behind a 2d feature flag could improve compile times for games which don't need it. Correct me if i am wrong but i don't think most 3d games normally require rapier2d, yet it's functions end up in the generated binary. Conversely, i don't think most 3d-specific stuff is necessary for 2d games so a 3d feature could improve their compile times.

martin-t avatar Oct 03 '21 09:10 martin-t

Right, that is indeed a must-have feature. Also, since 2d and 3d are completely isolated (they even use different renderers), it could be done pretty easily.

mrDIMAS avatar Oct 03 '21 10:10 mrDIMAS

Such separation does not have any sense with the current structure of the engine. Closing the issue.

mrDIMAS avatar Apr 11 '23 15:04 mrDIMAS