(for devs)If you would recreate Spring again from zero?

(for devs)If you would recreate Spring again from zero?

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

User avatar
Pendrokar
Posts: 658
Joined: 30 May 2007, 10:45

(for devs)If you would recreate Spring again from zero?

Post by Pendrokar »

Would the engine script change through the experience you've had and would it have better CPU or/and other type of performance than Spring had before? :?:
It is just that adding more and more new graphical features, decreases the performance for the PC, maybe by a bit, but in the long run takes great casualties! Not that I am suggesting to recreate Spring from zero, but I think this will lead of having performance very similar to Supreme Commander! ... Oh wait Spring Project started before anything was known about SupCom. Eh! :roll:
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Re: (for devs)If you would recreate Spring again from zero?

Post by SwiftSpear »

Most of the origional spring devs aren't working on spring any more. Not that the current devs couldn't rebuild the engine if they really wanted too... but that's alot of work. BTW, check out the Command Engine project, it was exactly sort of what you were recommending here. But it fell apart due to lack of time and what not.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: (for devs)If you would recreate Spring again from zero?

Post by BrainDamage »

this is not a rewrite, but gets pretty close, at least regarding rendering part

viewtopic.php?f=12&t=13772&start=0
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Re: (for devs)If you would recreate Spring again from zero?

Post by jcnossen »

this is not a rewrite, but gets pretty close, at least regarding rendering part
Yeah, this is similar to how apples are pretty close to penguins.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: (for devs)If you would recreate Spring again from zero?

Post by Argh »

LOL.

Well, if K-Man ever shows up again, or if somebody else can finally fix the steering code... we might get the whole penguin, someday. Trepan's work has basically delivered the "many games from one engine" premise. Allowing for RK in some way, shape, or form, which looks to be one of the goals of Child's project, would deliver most of the things I was expecting you to deliver with Command Engine's model format, assuming that whatever Child ends up giving us isn't a cure that's worse than the disease.

All we'd need after that is some improvements to the GUI, and I could build Freelancer II ;)
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: (for devs)If you would recreate Spring again from zero?

Post by Pxtl »

From-scratch rewrites are always FAIL. Part-by-part refactorings like Child's work are a great way to move a project forwards. A well-decoupled engine would be nice - wouldn't it be cool if Spring was well-factored enough that modders could choose to use the Lua/FBI+COB/DotNet interchangeably without losing out on functionality (speed, on the other hand, would probably go down the tubes if you used Lua for unit-animation)?
eriatarka
Posts: 67
Joined: 26 Jan 2008, 18:50

Re: (for devs)If you would recreate Spring again from zero?

Post by eriatarka »

Pxtl wrote:From-scratch rewrites are always FAIL.
Truth.
(speed, on the other hand, would probably go down the tubes if you used Lua for unit-animation)
Wouldn't be so sure about that... Lua is pretty much the fastest scripting language around. (See http://shootout.alioth.debian.org/gp4/b ... l&lang=all for a completely non-representative overview ;) ) This would really need some testing to be sure.
Lupus
Posts: 37
Joined: 18 Jan 2008, 22:23

Re: (for devs)If you would recreate Spring again from zero?

Post by Lupus »

A program written in scripting language won't run faster than compiled program.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: (for devs)If you would recreate Spring again from zero?

Post by aegis »

not always correct

if the script is written more efficiently than the compiled program, it is possible... also allows for more flexibility
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: (for devs)If you would recreate Spring again from zero?

Post by jK »

Lupus wrote:A program written in scripting language won't run faster than compiled program.
Since when is COB a compiled program?
The COB compiler only translates the code text in binary, but it still isn't cpu runable code ... Many scripting languages translate the code this way as well as Lua does.

The only advantage of COB >could< be that it is more slight (and limited) than Lua
(->less language overhead).
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: (for devs)If you would recreate Spring again from zero?

Post by lurker »

Cob is very much compiled, just not to x86 code. Would a lua bytecode file really run on a plain, simple, virtual machine?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: (for devs)If you would recreate Spring again from zero?

Post by KDR_11k »

Of course using Lua for unit animations is a dumb idea. That's what 3d Studio Max (or <insert other 3d package>) is for! Realistic animation is already hard enough to do, no need to complicate matters by forcing the modder to input every rotation by hand.
eriatarka
Posts: 67
Joined: 26 Jan 2008, 18:50

Re: (for devs)If you would recreate Spring again from zero?

Post by eriatarka »

lurker wrote:Cob is very much compiled, just not to x86 code. Would a lua bytecode file really run on a plain, simple, virtual machine?
COB is compiled to bytecode, Lua is compiled to bytecode. Yes, there is a Lua VM. I don't see the big difference. Except that a team of very clever guys has spent years optimizing the hell out of Lua; I doubt that amount of effort has gone into COB.
User avatar
LathanStanley
Posts: 1429
Joined: 20 Jun 2005, 05:16

Re: (for devs)If you would recreate Spring again from zero?

Post by LathanStanley »

well from what I understand, they ARE rewriting everything under a totally new project and name..

its kinda, hush hush, but yeah, its in the works for "someday" :lol: :roll:

tards.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: (for devs)If you would recreate Spring again from zero?

Post by zwzsg »

eriatarka wrote:Except that a team of very clever guys has spent years optimizing the hell out of Lua; I doubt that amount of effort has gone into COB.
COB is very simple and limited, and has been designed exclusively for animating hundred of units on a 1997 computer. You don't need tons of clever guys to optimise it, because there's already about nothing left to optimise in COB. LUA is versatile and has a much broader scope, and is also a much higher level language, so won't ever be as fast as COB.
eriatarka
Posts: 67
Joined: 26 Jan 2008, 18:50

Re: (for devs)If you would recreate Spring again from zero?

Post by eriatarka »

zwzsg wrote:COB is very simple and limited, and has been designed exclusively for animating hundred of units on a 1997 computer. You don't need tons of clever guys to optimise it, because there's already about nothing left to optimise in COB. LUA is versatile and has a much broader scope, and is also a much higher level language, so won't ever be as fast as COB.
You may be right; however, some tests might actually be interesting. And even if Lua isn't faster, I would be surprised if it wasn't at least roughly on par with COB, speed-wise. Plus the expressive power gained by switching from the rather limited COB to a full-blown scripting language also has its advantages.

But it's probably a moot point, short of someone implementing a new unit animation system...
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: (for devs)If you would recreate Spring again from zero?

Post by imbaczek »

Lua has one problem - to implement COB's sleep you need to yield from a coroutine, and that's not elegant in this language. COB has a massive win here IMHO, purely on aesthetic ground.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: (for devs)If you would recreate Spring again from zero?

Post by Pxtl »

imbaczek wrote:Lua has one problem - to implement COB's sleep you need to yield from a coroutine, and that's not elegant in this language. COB has a massive win here IMHO, purely on aesthetic ground.
A quick google for yielding reveals that Lua does have a statement called "coroutine.yield" for this case. You'd have to convert all the Lua unitscript methods into coroutines using "coroutine.create" before execution, but it would work.

"coroutine.yield(time)" isn't as elegant as "sleep" but it's not bad.

http://lua-users.org/wiki/CoroutinesTutorial
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: (for devs)If you would recreate Spring again from zero?

Post by imbaczek »

exactly what I had in mind. sleep is elegant, coroutine.create+coroutine.yield isn't. I could deal with that, but I doubt modders would like to wrap their heads around this.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: (for devs)If you would recreate Spring again from zero?

Post by Pxtl »

imbaczek wrote:exactly what I had in mind. sleep is elegant, coroutine.create+coroutine.yield isn't. I could deal with that, but I doubt modders would like to wrap their heads around this.
Couldn't coroutine.create be handled by the Lua-as-unitscript binding system? Just "coroutine.yield" would be fine. Also, I don't know enough about how Lua works, but could the yield statement be wrapped in a "sleep" function? I mean, in most coroutine languages that's a nonsense concept, but Lua might be different.
Post Reply

Return to “General Discussion”