FAQ:technical: Difference between revisions

From Spring
Jump to navigationJump to search
Af (talk | contribs)
No edit summary
No edit summary
Line 5: Line 5:


==What APIs does Spring use?==
==What APIs does Spring use?==
The Windows version of the program (Which is the Binary that can be downloaded from this site) uses: OpenGL for rendering, DirectSound for sound, and Winsock for networking.
Spring uses OpenGL for graphics and OpenAL for sound. Also SDL is used for input and some other stuff.
 
The Linux port, see [[Linux Page]] with more info below, uses SDL/OpenGL for rendering, OpenAL for sound (which will connect to DirectSound on Windows and OSS or ALSA on Linux), BSD  sockets for networking.


==I am having really bad framerates (fps) on my dual core! What am I doing wrong?==
==I am having really bad framerates (fps) on my dual core! What am I doing wrong?==
Currently spring does not like dual/quad cores, you will get really bad framerates. To solve this, you have to restrict it to run on one core. Download the file from http://www.robpol86.com/pages/imagecfg.php follow the instructions, and make all of the spring exe files (spring.exe, TASClient.exe, all others) run on one core. It will run much faster.
This error is sometimes reported by people having multicore-CPUs. To solve this, you could try to restrict it to run on one core. Download the file from http://www.robpol86.com/pages/imagecfg.php follow the instructions, and make all of the spring exe files (spring.exe, TASClient.exe, all others) run on one core.


Additionally, install the latest processor drivers and Windows hotfixes for your system.
Installing the latest processor drivers and Windows hotfixes for your system may also help.


==I am having really bad framerates (fps) on my brand new nVidia graphics card! What am I doing wrong?==
==I am having really bad framerates (fps) on my brand new nVidia graphics card! What am I doing wrong?==
Line 18: Line 16:


==What language is Spring written in?==
==What language is Spring written in?==
The spring game engine is written in C and C++. The Windows lobby client is written in Delphi, the lobby server is java. Of multiplatform lobby clients, SpringLobby is in C++ and AFLobby in java.
The spring game engine is mostly written in C++. The Windows lobby client is written in Delphi, the lobby server is java. Of multiplatform lobby clients, SpringLobby is in C++ and AFLobby in java.


==Is Spring open source?==
==Is Spring open source?==
Line 24: Line 22:


==Is there any documentation for the source code?==
==Is there any documentation for the source code?==
Yes, doxygen is used to automatically generate the [http://taspring.clan-sy.com/doxygen/ documentation] (''link is dead'').
Yes, doxygen can be used to produce documentation. Unfortunately, there is no webserver running the docu at the moment, you will need to generate your own. To do so, install doxygen and run "doxygen" from in spring source directory.


==Is Spring a Portable Application?==
==Is Spring a Portable Application?==


At present, I play Spring at my college by using my IPOD as a portable bit of storage for the game, so yes, it does appear to be portable. Also, I managed to run AFLobby from the IPOD as well.
Yes, spring can be run from any big-enought portable storage device.
 
If both of those can run off a bleedin' IPOD, they can run off of anything, in my opinion.
 
If I'm wrong, edit.
 
See [http://en.wikipedia.org/wiki/Portable_application] for more information about portable applications.
 
 
- Sangue
 
I have always played Spring off a two GB flash card and I have never had any probs with the registry. There is a little bit of a memory problem though x). I would say that Spring right now is definately portable as long as you leave it alone without adding a bunch of third party servers and such.
 
- Wred XIII

Revision as of 10:52, 10 February 2009

Technical

What port numbers does Spring use?

Game uses port 8452 UDP by default, which can be changed in the lobby. If you are behind a router, and are having problems hosting, try forwarding the correct port and also make sure the firewall is not blocking it.

What APIs does Spring use?

Spring uses OpenGL for graphics and OpenAL for sound. Also SDL is used for input and some other stuff.

I am having really bad framerates (fps) on my dual core! What am I doing wrong?

This error is sometimes reported by people having multicore-CPUs. To solve this, you could try to restrict it to run on one core. Download the file from http://www.robpol86.com/pages/imagecfg.php follow the instructions, and make all of the spring exe files (spring.exe, TASClient.exe, all others) run on one core.

Installing the latest processor drivers and Windows hotfixes for your system may also help.

I am having really bad framerates (fps) on my brand new nVidia graphics card! What am I doing wrong?

Turn off 'threaded optimizations' for Spring in the nVidia control panel.

What language is Spring written in?

The spring game engine is mostly written in C++. The Windows lobby client is written in Delphi, the lobby server is java. Of multiplatform lobby clients, SpringLobby is in C++ and AFLobby in java.

Is Spring open source?

Yes, it is. Go to the downloads section of the site to download the source code.

Is there any documentation for the source code?

Yes, doxygen can be used to produce documentation. Unfortunately, there is no webserver running the docu at the moment, you will need to generate your own. To do so, install doxygen and run "doxygen" from in spring source directory.

Is Spring a Portable Application?

Yes, spring can be run from any big-enought portable storage device.