When I open up the micro profiler on the client it only records 1-4 frames of readable data, the rest of the microprofiler is grey’d out.
This gif shows what it looks like on the client.
And when I try to dump the server micro profiler data the result only records 2 frames, even if I have it set to a 4 second duration at 60 frames.
I noticed recently the duration name was changed to “seconds to delay” i’m not sure if this changes it.
This is affecting me badly as I’m trying to optimize my game and the microprofilers are my main tools and they’re now basically unusable because I can’t record spikes if it only spits out 2-4 frames of data.
This happens in every game I join (on the client) and all games I can dump data for (the server).
We are also running into this issue on our experience (client and server). Seems like in the past week or two the scope of the microprofiler has shortened immensely. To add onto this, when attempting to dump 60 frames locally, it will be locked on 16 frames complete (regardless of if the game is running at 240 or 60 fps).
I’ve also been having this issue, seemingly for several experiences. It’s impossible to properly use the microprofiler if a lot of the frame data isn’t even there.
Thanks for reporting this. We did some memory optimizations and unintentionally reduced the MP buffer size in release builds. Internal (debug) builds were not affected, so we didn’t notice that until it was too late. Sorry about that.
As a temporary solution, you can go to “Dump” in the top menu, check “Include incomplete frames”, and save a 512-frame dump. This way, you’ll get many more frames - most of them will be broken, so scroll to the final third or so, and you’ll see usable data (a few dozen or around a hundred frames should be useful).
We’re working on a fix, but the next versions of the client and studio have already been forked, so the fix will be released in the update after the next one.
Yes, this is possible. But, as usual in big commercial projects, there are factors that make seemingly simple changes more complicated:
Our engine heavily relies on a list of flags loaded from the server at startup. The Microprofiler is initialized long before that, so it can’t rely on these flags to define its parameters.
Our telemetry will detect sessions with suspiciously high memory consumption, which could distort statistics and trigger alerts. Therefore, we need to mark sessions where a developer intentionally increased buffer sizes and exclude that information from those checks.
Anyway, I’ve added this idea to the TODO list.
Ideally, we should dynamically reallocate and rebalance buffers based on their actual fill rate to maintain a high number of captured frames.
I’ve just prepared a fix that restores most buffer sizes and rebalances the total memory we allocate between OS threads. I tested it on several top games as well as a few random ones, and it looks like it reduces total memory consumption of MP by ~20% compared to the pre-bug state, while allowing us to capture 300+ full frames in heavy scenes, which seems higher than before the bug.
I’m getting this issue again, has this bug resurfaced? I can’t even read 1 frame sometimes if they’re long enough, which makes this pretty much unusable. (I’m in a live non-studio server on windows)
Yep, probably, your report is the first in this release so far. I’ll check what happened. We have more and more subsystems reporting to MP internally, and sometimes they start sending more data without increasing their reported buffer sizes. This can result in a lower number of complete frames being captured.
I do see decreased frame numbers in v726, but not so dramatically - typically around 200 frames are available in random games. I have some thoughts on what might be the reason, though: we split one job into a dozen smaller pieces, and that could have had an impact.
In the meantime, could you please enable Dump → Include incomplete frames in the top menu, then save a 128-frame dump at the moment when you have almost no complete frames, and send it to me?
Discussed in PM, this is a game-specific issue this time - scripts spam IsDescendantOf calls across all worker threads, so there’s little space left for other data.
Nevertheless, it’s worth noting that even in this case it would be nice if MP showed at least something, rather than completely hiding incomplete frames in the UI by default.