New lua output causing massive performance hits when printing same thing every frame

Issue Type: Performance
Impact: Moderate
Frequency: Constantly
Date First Experienced:
Date Last Experienced:

Reproduction Steps:
When I print anything regardless of content every frame, after about 5-10 seconds my performance will start to drop drastically. Clearing the output will fix the performance issue for another 5-10 seconds before it starts dropping again.

Win 10
AMD Ryzen 5 3600 6-Core @4.0 GHz
8 GB RAM
NVIDIA GeForce GTX 1660 (Studio Driver v461.40)
DxDiag.zip (16.4 KB)

Expected Behavior:
FPS shouldn’t start dropping when I print something every frame

Actual Behavior:
Performance drops increasingly the longer I go without clearing the output
microprofile-20210309-151550.html (3.7 MB)

Workaround:
Spam CTRL+K

9 Likes

Are you printing the same content every frame or different content? Would you mind DM-ing me a Place with a minimal repro?

1 Like

This has been affecting me since I switched to the new output. Repro is very easy. Simply print the same content repeatedly, and you’ll start to notice frame drops as the output stacks more messages.

Frame drop became noticeable after ~(x1000), and I was running 10-15 FPS by the time it reached 2000. Framerate returned to normal after clearing the output.

1 Like

Try enabling log mode from settings dropdown shown in the top right. I recently had a similar issue that made testing with a large amount of prints a huge pain - the introduction of log mode solved that issue for me.


3 Likes

Yep, Log Mode will address the issue of printing the same content repeatedly and very fast. However, if different content is being printed on every frame, then we’d like to investigate further.

5 Likes

I’d like to add that printing cyclic tables also cause FPS drops when printing and expanding causes Studio to freeze for a bit.

4 Likes

Hello. If this issue is still occurring, please create a new topic for us to look into.

2 Likes