How does Spring make Deterministic Physics?
Moderator: Moderators
Re: How does Spring make Deterministic Physics?
Oh, that's too bad. I'll look into using fixed point math but I can't seem to find a good library in C#.
-
- Posts: 823
- Joined: 21 Oct 2008, 02:54
Re: How does Spring make Deterministic Physics?
May I ask on what your trying to do?
Re: How does Spring make Deterministic Physics?
I'm making a deterministic physics engine for my RTS game.
Re: How does Spring make Deterministic Physics?
Why would the spring physics NOT be deterministic by your definition. even debris is synced because the debris causes damage. I am not sure if what you mean. or all physics synced among all players, sure or is it something else?jpthek9 wrote:Determinism is if the same input is replayed, the same result comes out so the command can be sent instead of positions, as abma suggested.
Re: How does Spring make Deterministic Physics?
I never said it wasn't. That's why I'm modeling my deterministic engine after Spring's. All the physics will be synced among players which is why I need the same calculations across all platforms. Unfortunately, fixed point math libraries are hard to come by and streflop has no port to C# I can find. I think I'll end up just using decimals for everything. The performance might take a hit but the engine is very bare bones so I don't think it'll be a big deal.
Re: How does Spring make Deterministic Physics?
Ah, I get it, sorry, see when you posted in game development, I assumed you were looking to develop a game in spring. My bad.
Re: How does Spring make Deterministic Physics?
No problem. You guys've been a great help :). I've actually considered using Spring but the thing I want above all is customizability and control over my project so I had to take a different route.
Re: How does Spring make Deterministic Physics?
you could always fork the engine but sometimes working from scratch is better.
Re: How does Spring make Deterministic Physics?
I think I'll try to create most of the parts from scratch but if there's ever something I hit a wall with, I know I have a great example to look towards.
Re: How does Spring make Deterministic Physics?
We'll still be here when you realize the magnitude of what needs to be done and give up on your own thing in favor of Spring.jpthek9 wrote:I think I'll try to create most of the parts from scratch but if there's ever something I hit a wall with, I know I have a great example to look towards.
We're a caring bunch like that
Re: How does Spring make Deterministic Physics?
Thanks xDgajop wrote:We'll still be here when you realize the magnitude of what needs to be done and give up on your own thing in favor of Spring.jpthek9 wrote:I think I'll try to create most of the parts from scratch but if there's ever something I hit a wall with, I know I have a great example to look towards.
We're a caring bunch like that
Most of the work is already done by the Unity3D engine. The networking was pretty straight forward as there wasn't any damn math imprecision in it.
-
- Posts: 823
- Joined: 21 Oct 2008, 02:54
Re: How does Spring make Deterministic Physics?
Hey c# for game code(for spring) sounds great! That something that I will support one.
Re: How does Spring make Deterministic Physics?
"make a fork that uses C# as game logic language instead of lua"
-
- Posts: 823
- Joined: 21 Oct 2008, 02:54
Re: How does Spring make Deterministic Physics?
There no need to make a fork, as there is nothing preventing spring from having multiple language wrappers.Anarchid wrote:"make a fork that uses C# as game logic language instead of lua"
Last edited by Super Mario on 11 Feb 2015, 22:07, edited 1 time in total.
Re: How does Spring make Deterministic Physics?
@Super Mario:
nobody here was talking about changing spring to use C# instead lua. read the first post again:
viewtopic.php?p=565921#p565921 its about a new/foreign engine.
nobody here was talking about changing spring to use C# instead lua. read the first post again:
viewtopic.php?p=565921#p565921 its about a new/foreign engine.
-
- Posts: 823
- Joined: 21 Oct 2008, 02:54
Re: How does Spring make Deterministic Physics?
Then Anarchid should be a little more specific on what he meant by "forking" without quoting anyone.abma wrote:@Super Mario:
nobody here was talking about changing spring to use C# instead lua. read the first post again:
viewtopic.php?p=565921#p565921 its about a new/foreign engine.
Re: How does Spring make Deterministic Physics?
it was sarcasm...
-> back to topic
-> back to topic
Re: How does Spring make Deterministic Physics?
Well.. it is horrible... but the truth is- to get determinism from a computer- you need to sacrifice a cat.
So at the heart of spring - is the buildserver, which is connected to a animal farm.
Everything goes to false or dominant zero, if a cat dies.
So at the heart of spring - is the buildserver, which is connected to a animal farm.
Everything goes to false or dominant zero, if a cat dies.
Re: How does Spring make Deterministic Physics?
I was actually talking about forking because running a Lua environment together with a .net environment while also staying cross platform might possibly be a bit hard and a bit expensive.Then Anarchid should be a little more specific on what he meant by "forking" without quoting anyone.
Re: How does Spring make Deterministic Physics?
The God of Determinism must be pleased for him to shed his favor on game. On a serious, I made a type that's deterministic with rounding. In case anyone wants to check it out, here it is: https://www.dropbox.com/s/sd30muyx916v17v/Mathd.cs?dl=0PicassoCT wrote:Well.. it is horrible... but the truth is- to get determinism from a computer- you need to sacrifice a cat.
So at the heart of spring - is the buildserver, which is connected to a animal farm.
Everything goes to false or dominant zero, if a cat dies.