Radar unlocks map

by Pithlit

You will need to build a radar to use the map (remote view)

Tweaks
20 hours ago
2.0
14

i Some performance optimizations

14 hours ago

I like the idea of this mod, but I have some suggestions on how to improve performance by moving the contents of your on_tick event to other event triggers to improve performance.

exit_remote_view only needs to be called if the player changes controllers. Use the on_player_controller_changed event to check if the player switched to remote view, and immediately switch back if needed.

player.minimap_enabled only needs to be changed to false when a new player is created or when they change forces. Use events on_player_created and on_player_changed_force to check if minimap_enabled needs to be set to false.

These changes will allow you to remove your on_tick event from the game, greatly improving performance.

14 hours ago
(updated 14 hours ago)

Right now, this mod consumes about 0.03 ms of compute time per frame, which isn't huge, but it can add up when stacked on top of several other mods with similar optimization mistakes.

New response