Loading...
  OR  Zero-K Name:    Password:   

Headless Spring?

9 posts, 519 views
Post comment
Filter:    Player:  
sort
8 years ago
https://springrts.com/wiki/Spring_Headless

Can i use this to do cai vs chicken testing at a really high sim-speed?

How do i use this feature?
+0 / -0
I asked the same thing today:

quote:
[16:14] Anarchid lauch spring-headless instead of spring


To be more precise. First launch a game of CAI vs Chicken, then open your infolog and copy the command line arguments from the first line. Use these to launch your preferred version of Spring. Now the game should start just like it does from the lobby. You only have to use the spring-headless executable and it'll do the same thing without gui.

Don't forget to set the minimum game speed to something like 10x in the lobby.

quote:
at a really high sim-speed

I'm sorry to disappoint you, but it's still Spring and the biggest part of it is neither graphics related nor able to use your graphics card.
+0 / -0
8 years ago
Is there some way to track the sim speed then, so i can see what the performance difference is between normal and headless under the same load?
+0 / -0
As you're used to writing widgets you could just write a widget that prints the current sim speed using [whyIsThereNoTagForThis]Spring.GetGameSpeed[/tag]. Make sure to enable the widget before starting Spring-headless.
+0 / -0
8 years ago
Where is it printing to? Would it need to be a proper widget, or do i need to make it check every second or every update or what do you suggest?
+0 / -0
8 years ago
Is there a way to do the old benchmarker tests with the headless spring built in as part of the process of the sequential tests?
+0 / -0

8 years ago
Imo, the largest benefit of headless Spring is the fact it doesn't launch a window, meaning you could run a number of automated tests without interrupting your work.
+0 / -0

8 years ago
quote:
Is there a way to do the old benchmarker tests with the headless spring built in as part of the process of the sequential tests?

Rename spring-headless to spring. (You can make a new engine folder)
+0 / -0

8 years ago
quote:
Where is it printing to? Would it need to be a proper widget, or do i need to make it check every second or every update or what do you suggest?

Just print the simspeed as frequent as you need it using Spring.Echo() or simply print(). You can find it afterwards in the infolog as well as the console while the game is running.
+0 / -0