Re: Torcs 1.3.5, compiling for more then 1 core, running without focus

Bernhard Wymann <[email protected]>
Newsgroups gmane.games.torcs.general
Organization wytec
Message-ID <[email protected]>
Hi Schnuck

Thank you for the report:-)

Currently it runs on one single core apart from the sound processing 
with OpenAL, this runs in another thread. But with "only" 15 cars the 
graphics card is the limiting factor usually, switching off the rear 
mirror, reducing the visibility and setting wheel rendering to simple 
might help most. Alternatively you could get/use low poly car models 
(e.g. from ancient TORCS versions).

I guess the "hidden window" thing was desired to avoid noise/power 
consumption. Are you aware that you can run TORCS in command line mode 
without GUI whatsoever (see FAQ, researchers section)?

You could make the glutIdleFunc point to "reDisplay" in racegl.cpp 
during the race, this would then keep the processing running (when the 
window is hidden the postRedisplay just marks the window with "requires 
redraw", so no event is generated and TORCS "stalls"). To find the 
proper place to add this just find the place where glutDisplayFunc is 
set for entering and exiting the race, so adding just 2 lines of code 
might do the trick.

Everybody else: Is it a common demand to change this behaviour?

Hope this helps

Bernhard

On 09/13/2013 01:33 PM, Schnuck68 wrote:
>
> Hello Torcs-User,
>
> Sorry for the subject, it's probably not the best description of my
> requests.
>
> First of all I'd like to point out that it was just a question of running
> 'configure && make && make install' to get the new version to compile
> on Mageia 3 Linux with a 3.8.13 kernel on my Asus laptop with a Nvidia GC.
>
> Still there's a question left: Is it possible to compile it to run on more
> than one core?
>
> It uses one of eight cores and runs on it with 55 to 60 fps if I race on
> E-track-6 for example. I am able to race fluently against 10 or 12
> opponents,
> but it gets "jumpy" if I try to configure 15 or more opponents at once.
>
> Also I always recognized that the running race stops, if I switch
> away from the virtual desktop the visual/window is on.
> I guess this is a desired behaviour.
>
> I sometimes let some robots race against each others and then I  switch to
> some other virtual desktop to work on something else for a minute.
> But the race stops if I do that.
>
> Is there a way to change this? I'd like it to run unattended for a while.
>
> Thank you for your time.
>
> Greetings
>


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.