Search

Search found 1421 matches

by zerver
23 Oct 2008, 22:21
Forum: Engine
Topic: Spring is running in SMP
Replies: 529
Views: 43543

Re: Spring is running in SMP

I now have the parallel Sim/Draw *almost working*. If you wanna try it, compile with gml=yes gmlsim=yes. It currently only works with mods that do not make GL calls from Sim (such as BA). It can be enabled/disabled ingame with /multithread (multithreaded DrawUnit etc) /multithreadsim (parallel Sim/D...
by zerver
05 Oct 2008, 23:18
Forum: Engine
Topic: Dynamic sky
Replies: 6
Views: 393

Re: Dynamic sky

How do you want to detect if the sky is visible? Also dynamic sky is very important with large reflective areas and reflective water renderers. Good point ! I guess we will have to update it then. I already reduced the update frequency to once every 10 frames - will reduce further if needed. yes i ...
by zerver
05 Oct 2008, 21:28
Forum: Engine
Topic: Dynamic sky
Replies: 6
Views: 393

Dynamic sky

I found that the DynamicSky setting for Advanced sky had been hardcoded to false. I fixed this, but Imbaczek noticed that it uses some CPU. Most people don't see the sky while playing, so it is a shame to waste CPU on it for no reason. Do you guys think it would be OK to only update the dynamic sky ...
by zerver
05 Oct 2008, 00:33
Forum: Engine
Topic: StdAfx.h and compiletime
Replies: 15
Views: 821

Re: StdAfx.h and compiletime

This requirement is with boost 1.36+

Maybe buildserv is using boost 1.35 ?

Edit: Alright, only the files using GL need will stdafx or an equivalent...

Edit: Never mind, I got it solved but I had to include myGL in some files even though they are not using GL.
by zerver
04 Oct 2008, 17:59
Forum: Engine
Topic: StdAfx.h and compiletime
Replies: 15
Views: 821

Re: StdAfx.h and compiletime

If you remove stdafx I will need some other file that I know will be included before everything else, in every cpp file.

Why? GML needs this to patch boost::detail::atomic_count.
by zerver
03 Oct 2008, 17:23
Forum: Engine
Topic: StdAfx.h and compiletime
Replies: 15
Views: 821

Re: StdAfx.h and compiletime

Speaking of annoyances, code like... int **prcy=prc; int *pkernel=kernel; for(int y2=0; y2<cs4a; ++y2, ++prcy, pkernel+=CLOUD_SIZE/4) { int *prcx=(*prcy)+x; int *pkrn=pkernel; for(int x2=0; x2<cs4a; ++x2) { (*prcx++)+=blend*(*pkrn++); It may be slightly faster to juggle array indices manually, but ...
by zerver
28 Sep 2008, 15:01
Forum: Engine
Topic: Planning for 0.77 Release
Replies: 357
Views: 15280

Re: Planning for 0.77 Release

But I did find a small visual anomaly: -Decals dont fade out abruptly, but fade out about halfway, then disapper suddenly. I recall in the older version that the decals setting just set the fade rate on the decals, so they faded away unnoticeably. Now, it seems there is a cap to how many there can ...
by zerver
17 Sep 2008, 22:33
Forum: Engine
Topic: Buildbot?
Replies: 109
Views: 10562

Re: Buildbot?

bibim wrote:So now, to build Spring with GML, you just have to enter "!rebuild profile=GML" (uploaded files will be prefixed with "[<profileName>]", so each build profile is totally independent).
That's great :mrgreen:
by zerver
15 Sep 2008, 23:01
Forum: Engine
Topic: Planning for 0.77 Release
Replies: 357
Views: 15280

Re: Planning for 0.77 Release

bibim wrote:Yeah, that's what I think too...
I guess we could make an MT version in conjunction with this release too but it will be very limited in what it can do. My testing so far is based on BA only, with lua widgets disabled.
by zerver
15 Sep 2008, 18:44
Forum: Engine
Topic: Planning for 0.77 Release
Replies: 357
Views: 15280

Re: Planning for 0.77 Release

Ok I re-disabled it... Zerver, I can add you a BuildServ option to build with GML=true if you want... That would be nice. MT bugs should not stop you from releasing anything. I just wanted some error reports, which I have got now. It may be that CA uses other GL calls than BA and those happen to be...
by zerver
11 Sep 2008, 01:57
Forum: Engine
Topic: Spring is running in SMP
Replies: 529
Views: 43543

Re: Spring is running in SMP

Great, it seems to compile now!

It would be good if someone could test if it runs on linux compiled with gml=yes.

At least it seems to run with GCC/win32 now. The performance gain is not big (5-10%) but still better than nothing.
by zerver
11 Sep 2008, 00:24
Forum: Engine
Topic: Spring is running in SMP
Replies: 529
Views: 43543

Re: Spring is running in SMP

Could someone on Linux help me debug the compile error on buildbot? It seems to think that _syscall3 is a function, but it should be a macro defined in <asm/unistd.h> Thanks #include <linux/types.h> #include <linux/fs.h> #include <sys/syscall.h> #include <asm/ldt.h> #include <asm/unistd.h> #include ...
by zerver
06 Sep 2008, 14:36
Forum: Engine
Topic: Planning for 0.77 Release
Replies: 357
Views: 15280

Re: Planning for 0.77 Release

imbaczek wrote:have you tried simpler programs than spring? does it work there?
Yes, it appears to work when I compile your sample from pastebin.
For some reason the program crashes, but the output makes sense.
by zerver
05 Sep 2008, 21:02
Forum: Engine
Topic: Planning for 0.77 Release
Replies: 357
Views: 15280

Re: Planning for 0.77 Release

imbaczek wrote:forgot to commit scons patch, it has to be passed to linker, too.
edit: committed.
I'm afraid I still cannot get TLS working. Like I said, maybe there is something missing in this experimental GCC 4.3.2 from tdragon.net.
by zerver
05 Sep 2008, 12:33
Forum: Engine
Topic: Planning for 0.77 Release
Replies: 357
Views: 15280

Re: Planning for 0.77 Release

My library has been based on TLS all the time. If it "used to work" before, it must have been a different compiler, a single core system or maybe the library was disabled. I didn't change anything in the BuildServ configuration: same compiler, same default build flags. I think commit r6310 introduc...
by zerver
04 Sep 2008, 20:35
Forum: Engine
Topic: Planning for 0.77 Release
Replies: 357
Views: 15280

Re: Planning for 0.77 Release

imbaczek wrote:edit: adding -mthreads didn't help with locking on finalizing, but the message box doesn't appear.
Well, it could be more bugs...
Did you really have to add mthreads? When I build with scons, mthreads already appears on the g++ command line.
But I still get the message box of course.
by zerver
03 Sep 2008, 18:43
Forum: Engine
Topic: Spring is running in SMP
Replies: 529
Views: 43543

Re: Spring is running in SMP

Have you thought about (imho) most obvious design of running two main loops (in 2 threads), one for rendering and one for sim. The biggest obstacle to making this reality seems to be LUA. I do not know much about LUA, but it seems to be very much stack based. Both the rendering and sim use the same...
by zerver
03 Sep 2008, 18:32
Forum: Engine
Topic: Planning for 0.77 Release
Replies: 357
Views: 15280

Re: Planning for 0.77 Release

I'm afraid we will have to wait for TLS support. Thread ID's are simply too slow - every single GL call needs the thread ID and would need to call GetCurrentThreadID(). Compare this to the ultra-efficient TLS in Visual Studio, where each variable access translates into just three CPU instructions. M...
by zerver
01 Sep 2008, 00:26
Forum: Engine
Topic: Planning for 0.77 Release
Replies: 357
Views: 15280

Re: Planning for 0.77 Release

I know! There could be something wrong with the experimental 4.3.2 from tdragon.net of course.

I added a TLS test to my library, it is in trunk now. If there is an error, a message box will appear and spring will terminate.
by zerver
31 Aug 2008, 15:14
Forum: Engine
Topic: Planning for 0.77 Release
Replies: 357
Views: 15280

Re: Planning for 0.77 Release

Like I wrote in the other thread, problem appears to be caused by the fact that GCC 4.3 does not support TLS using __thread. I'm surprised it does not spit out any error messages though.
Maybe TLS must be enabled somehow?

Go to advanced search