-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed stroke generation #32
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Detailed my changes
@@ -48,7 +48,7 @@ private PublishActivity() | |||
|
|||
public DrawingSessionActor(string sessionId, IRequiredActor<AllDrawingsPublisherActor> drawingActivityPublisher) | |||
{ | |||
PersistenceId = sessionId; | |||
PersistenceId = $"drawsession-{sessionId}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make persistence ids more obvious from looking at the database
public UserId UserId { get; } = userId; | ||
} | ||
|
||
public sealed class CreateConnectedStroke(DrawingSessionId drawingSessionId, UserId userId, ConnectedStroke connectedStroke) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't have the Blazor UI decide how or when to group strokes - have the debouncer do it.
@@ -78,21 +78,24 @@ else | |||
// create subscription | |||
async Task RunSubscription() | |||
{ | |||
var source = Source.ActorRef<DrawingActivityUpdate>(100, OverflowStrategy.DropHead); | |||
var source = Source.ActorRef<List<DrawingActivityUpdate>>(100, OverflowStrategy.DropHead); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix bug with streaming updates on sessions
.PreMaterialize(_materializer); | ||
|
||
_debouncer = sourceRef; | ||
source.GroupedWithin(100, TimeSpan.FromMilliseconds(75)) | ||
source.GroupedWithin(10, TimeSpan.FromMilliseconds(75)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reduce the size of stroke chunks
No description provided.