The biggest change here is now the world builder uses &World instead of &mut World, which actually removes a Vec allocation in the theme updater. This affect the utility function get_primary_window(), which can no longer use a query and instead needs to access archetypes directly (which is probably more efficient since you don't need to build an entire QueryState every time it's invoked).
Alternative implementation to #36
The biggest change here is now the world builder uses
&World
instead of&mut World
, which actually removes a Vec allocation in the theme updater. This affect the utility functionget_primary_window()
, which can no longer use a query and instead needs to access archetypes directly (which is probably more efficient since you don't need to build an entire QueryState every time it's invoked).