bryanedds / Nu

Repository hosting the open-source Nu Game Engine and related projects.
MIT License
1.05k stars 151 forks source link

Partial Nu project recompilation in Gaia. #768

Open bryanedds opened 3 months ago

bryanedds commented 3 months ago

Games can grow very large so the code reloading feature of Nu could become bogged down in recompile times, even once we get the new faster F# compilation pipeline. So instead of recompiling all project files each reload, we could pick the first file in project sequence with a new time stamp and start recompiling from there. This won't solve the issue in every case, but it could help mitigate medium-sized commercial game projects.

bryanedds commented 2 months ago

This would not work well for some applications. Just because code hasn't changed doesn't mean the read-only data - such as CSV data used by OmniBlade.Data.Value won't need reloading. Let's be more careful when thinking about this.