Summary
Updating the minimap texture frequently causes FPS to drop over time, even though CPU and GPU usage decrease.
This suggests a potential memory leak or inefficient garbage collection.
Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Memory
Steps to Reproduce
Create a new level in UEFN.
Add a Map Controller and connect it to a Verse Creative Device.
Use the following code to update the minimap texture every 0.033s (for testing to observe results faster):
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
minimap_performance_test := class(creative_device):
@editable MapController : map_controller_device = map_controller_device{}
OnBegin<override>()<suspends>:void=
spawn{KeepUpdatingMinimap()}
KeepUpdatingMinimap()<suspends>:void=
loop:
MapController.Deactivate()
MapController.Activate()
Sleep(0.033)
Start a session and monitor FPS over time.
Expected Result
FPS should remain stable or decrease only slightly over time.
Old minimap textures should be properly discarded or optimized.
Observed Result
FPS drops over time, eventually becoming unplayable.
CPU/GPU usage decreases over time.
RAM usage slightly increases.
FPS stays low in the edit session after ending the game.
Time FPS CPU Usage GPU Usage RAM Usage
13:08 380 FPS 33% 65% 11.1GB
13:09 341 FPS 33% 54% 11.1GB
13:10 280 FPS 36% 48% 11.1GB
13:11 220 FPS 34% 33% 11.1GB
13:14 162 FPS 26% 35% 11.1GB
13:16 119 FPS 31% 32% 11.2GB
13:19 87 FPS 24% 23% 11.2GB
13:25 58 FPS 30% 12% 11.4GB
13:44 22 FPS 21% 25% 11.4GB
14:23 10 FPS 20% 10% 13.0GB
Platform(s)
windows