RE: CPU Lag Spikes Still Evident; Rhythmic Reoccurrence in *any* ROBLOX game (Empty or Not)

This is a continuance of the following post: Lag Spikes -- MicroProfiler shows "Thread -Foreground"

The bug portrays a quick freeze congruently, there is a spike in CPU usage… while short and the rhythmic repeat time being around 10-20 seconds, still breaks fluid flow of gameplay. This ‘bug’ is never truly ending and occurs in all ROBLOX games so my assertion is that the cause of the freeze and spike is not that of poor code and script executions.

Additionally my brother who has same computer has been getting the same problem, we were worried that his CPU may have been degraded or some other facet was causing the problem, but extensive attempts to locate possible problems (W11 has been pretty bad in terms of bloat and whatnot, other games/applications outside the purview of ROBLOX had no problems) and testing the CPU/Hardware warranted 100% green on our end–it is ROBLOX

Additionally I didn’t notice problems on my end until after I was made aware of his problems…

System Specs
Windows 11 Home; Version 10.0.26100 Build 26100
Processor Intel(R) Core™ i7-14700F, 2100 Mhz, 20 Core(s), 28 Logical Processor(s)
Graphics Card NVIDIA GeForce RTX 4070 Ti SUPER
Ram 32 GB

Bios Up To Date and has been kept up to date with all updates.

Imagery of the rhythmic CPU spikes and thread halts (Public; Actual micro profiler files provided privately)

Expected behavior

CPU spikes (and with that, microfreezes during gameplay) should not occur in all ROBLOX games (empty ones also proved to procure the spikes).

The only situation this should occur is within a poorly optimized script execution…

Again, will be attaching microprofiler files–I don’t really know whats going on just that I can see its effect…

A private message is associated with this bug report

4 Likes

Are you only seeing this when microprofiler is turned on? What if it’s completely off? (not running on the top of the screen either) - especially if you use another frame rate monitor/pacing utility (Win-G → performance → frame for one built into Windows)

I’m experiencing the same issue, and it also happens with the microprofiler off. The lag spikes did show up through the FPS monitor you mentioned.

This was taken on the home page in-app.

1 Like

ive also been getting this issue, but its only been in 1 game so far and theyve only lasted in about 1 minute waves

I also experience the same issue whether MicroProfiler is on or off. I’ve also tried running Roblox completely standalone—no other performance monitors or overlays like the Windows Game Bar (Win + G). The lag spikes consistently occur every 10–20 seconds, regardless of the game I’m playing or the graphics level settings.

I’ve attached a MicroProfiler screenshot showing one of the spikes. You can see that during these moments, the “Thread Foreground” section takes significantly longer to process, which I suspect might be related to the issue.

1 Like

We have MicroProfiler specific overhead (which is taking longer than we expect it to) in the Thread-Foreground that doesn’t happen if the MicroProfiler has been off since the start the application.

Once you start the MicroProfiler it will incur this overhead. Turning MicroProfiler off via the Escape menu or key combination will not clear this. Also note, we have a bug with MicroProfile’s visible menu where if you select “Off” it’s still on and it doesn’t clear the game settings file option - so it will auto restart.

Can you verify that MicroProfiler is not running via the key combination (platform specific but for windows it’s Ctrl-Shift-F6) - and then once you’ve done this, completely restart the client and make sure you don’t see the Microprofiler running. Then do the frame pace measurement as you’ve done via Win G → Performance.

For the record we know all of this is annoying and plan on fixing these usability bugs - as well as the potential overhead of the MP call.

2 Likes

Doing this doesn’t seem to have fixed the issue for me. Linking a video below just in case I’m doing it wrong.

The FPS overlay doesn’t seem to work well with Roblox, but I did notice several lag spikes before opening the microprofiler again in the video.

https://www.youtube.com/watch?v=07QQqqZUsKo

(Might be worth noting that I did try reinstalling roblox before this, including deleting the folder in AppData\Local. Still had the issue.)

2 Likes

I’ve followed your instructions:

Turned off the MicroProfiler using Ctrl + Shift + F6
Completely closed Roblox
Reopened Roblox and joined a game, ensuring the MicroProfiler was not running

However, I’m still experiencing the same issue. The lag spikes persist — the FPS occasionally drops from around 133–144 FPS down to 60–70 FPS, then returns to normal.

While the CPU usage in the Windows Game Bar (Win + G) performance overlay doesn’t show much of a spike, I do notice CPU spikes in the Roblox in-game performance stats during these FPS drops.

For reference, here are my device specs:

  • CPU: Intel Core i7-13650HX
  • GPU: Nvidia RTX 4050 Laptop GPU
  • OS: Windows 11 24H2 Home Single Language
2 Likes

Yes this issue occurs when all performance stats/micro-profilers systems are off.

I only used these visuals to demonstrate the spiking actually occurring–though I could’ve used a basic video, this was just easier (I can get a video though).

I should also mention that this all seems to have started sometime after latest windows 24h2 updates… I cant exactly pinpoint if it is the culprit? but June-July builds may need to be looked into?

I can also say that studio testing has no spiking whatsoever if that helps

1 Like

Ok thank you for the updates, this really helps narrow down the potential cause.

1 Like

On version 225e87fdb7254f64 it seems the issue is persisting, this build was just released yesterday.
c73d249b7b5c3fc7d18cf9bbe6da76f52c05d0cf_2_690x15

Its still the little spikes, then every so often a huge spike. All caused by thread - foreground

(This is a repost from the last post)

We have some changes going in targeting the 683 release, while won’t fix the issue, will help us narrow down where it is. When this release lands please retake the MP captures!!

3 Likes