Lags in the DMs area #954
Labels
No labels
Blocked
Bug
Documentation
Duplicate
Enhancement
Good first issue
Help wanted
Idea
In progress
Invalid
Major feature set
Packaging
Question
Soon
UI/UX
Upstream
You're dreamin'
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nostr/gossip#954
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm experience significant lags in the DMs section, both scrolling the conversations and typing a new message.
I'm on
9ea49678, but I remember the problem was present also in previous versions.I did some major rework of when gossip repaints today. So whatever was happening on
9ea49678probably isn't relevant anymore. Please try55fcc58385Now I'm on
2b34ac74, the lag persists. If I increase the FPS to 60 (I read your note about that) the situation improve a little, but there is still a clear difference compared with the speed of the main feed and the compose area.If I go to a particularly long DM conversation it gets a tad bit slower. I'll keep an eye on this one, I'm not sure why.
My last feedback is related to our conversation.
I can intuitively understand the issue when scrolling, but why the lag when typing? It's a refresh problem in egui?
It is not happening for me, so we have to figure out what is different. I have Maximum FPS set to 20. I have the spinner turned on (so I can see when frames refresh and when refresh is lagging). I am not using the WGPU renderer.
It might be related to the WGPU render so I'm going to try that... nope, still perfectly responsive and smooth.
I may have to try it on MacOS next.
I can't reproduce on MacOS either. Key repeat goes as fast in gossip as it does in terminal in the DM area. And my max fps was as low as 15. I'm kinda out of ideas.
I did a test on my old Thinkpad X220 and it's visibility faster on our conversation, I can spot a really little lag compared to chats with only 2/3 messages, but it's barely perceptible. So it definitively seems a problem with my mac.
This is my compile command:
Note: the feed, with many more notes, doesn't show any problem.
Here's a few things I can rule out:
Most of the feed rendering logic is the same in the DM area as it is in the normal feed which isn't having the problem. So there must be something in the DM-specific rendering code somewhere. It could be in any of these places:
As mentioned, on the main feed, even if it contains a lot more notes than our conversation, the scrolling and the composing area work perfectly.
Let me know if I can help you debug the issue.