Closed clicketyclackety closed 1 year ago
@cwensley, @rfeathers068 I can't quite work out why this doesn't work. And I don't think I'm debugging it correctly. Everything builds, but the specks aren't passed around correctly. Would love a hand with this one, either fixing, or suggesting a better implementation. 😋
@cwensley, @rfeathers068 I can't quite work out why this doesn't work. And I don't think I'm debugging it correctly. Everything builds, but the specks aren't passed around correctly. Would love a hand with this one, either fixing, or suggesting a better implementation. 😋
One thing I noticed, which Curtis may have to help with is the Database Migration didn't update for me so that might be part of the issue as well.
One thing I noticed, which Curtis may have to help with is the Database Migration didn't update for me so that might be part of the issue as well.
I had a feeling this might play a part
Hey @clicketyclackety, a few things that I can see about this PR:
ServerSpeck
in SpeckLib
but LocalSpeck
is in Crash
? I would expect ServerSpeck to be in Crash.Server unless there's a reason for that? Ideally we should just use the same class on both sides and if we need other information on either side we can wrap it in an outer class.dotnet ef add migration <name_of_migration>
in the Client.Server\
folder. I should add a VS Code task for that and some instructions to the docs.That's all I can see for now, I hope this helps!
Hey @cwensley,
Thanks for the notes. I was able to get things running again with a few changes;
I think likely you guys may spot some more things. But it does now work nicely! Much nicer to be able to connect to the server and retrieve your work in progress stuff 😊
@cwensley if you could take a look at the new implementation, that'd be fab 😊
Description
Currently there are 2 speck implementation, 1 local and 1 server-side. This was okay for the hackathon, but the current implementation has quite the performance penalties.
I've implemented an
ISpeck
interface to allow for more flexibility in server/client side handling of them. In the local implementation, it de-serializes and caches the geometry to prevent constant, slow de-serialization. In the server implementation it has all of the information it had before, but with a few different constructors.Type of change
Please delete options that are not relevant.