So i was experiencing lag spikes in my game so i spent hours trying to optimize it, little did i know, the problem was with roblox’s core scripts, and it happens to ALL roblox games.
Rejoining a game causes SchedulerHostConfig.default to spike periodically and randomly
I tried it on 3 games - my game, a baseplate, and a popular game - and it spikes randomly every 10-60 seconds in all of them.
It’s not tied with user input; it happens equally when i’m standing still on a baseplate and when i’m moving on a baseplate.
Haven’t tried it in other devices but i know it consistently happens to my device and some others.
microprofile-20241226-195018.html (4.7 MB)
A person who had the same issue:
Repro:
Join any game in the roblox desktop app.
Leave the game (at any period) and rejoin immediately with the desktop app
Observe the mircoprofiler and see SchedulerHostConfig.default spike randomly every 10s to 1 minute
Expected behavior
SchedulerHostConfig.default should not lag spike.
A private message is associated with this bug report