Forums
Support more opponents - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4)
+--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9)
+--- Thread: Support more opponents (/showthread.php?tid=1631)

Pages: 1 2 3 4 5 6 7 8


- NaN - 05-01-2012

Windows build(without data) vdrift-gui-2012-05-01.exe:
https://sourceforge.net/projects/vdrift/files/vdrift/nightly%20builds/

Changes:
- Fix: Reimplement active sound sources culler.
- Clean up sound class. Get rid of stdint.h as it is c99.

Tracks updated:
pau
nuerburgring_nordschleife
mosport
monza88
monza
montreal
monaco88
monaco
melbourne
magny


- NaN - 05-02-2012

Some testing with 24 cars has shown that the thread safe sound system is having heavy crackling at start with some very minimal/occasional crackles afterwards. I have no crackling with up to 12 cars.

Would be great if I could get some feedback on this. Try different numbers opponents with active sources limit of 64(default) and 32.


- NaN - 05-02-2012

OK, now I feel somewhat stupid. But then it's my first contact with sound processing, hehe.

The crackling comes not from the sound callback threading issues but from values overflow. This also explains its massive presence at start.

I think we need to look into the sound attenuation equation, need a stronger falloff for close sources maybe. The currently used one looks somewhat funky, not sure about its origin. Or should the values be simply clamped?

A simple workaround for now is to reduce in game sound effects volume to about 12/24 = 0.5.


- NaN - 05-02-2012

New build vdrift-gui-2012-05-02.exe: https://sourceforge.net/projects/vdrift/files/vdrift/nightly%20builds/

The only change is an increased sound attenuation falloff factor(from 1.3 to 1.6). This should fix the sound issues finally. Please test.


- berzingue - 05-02-2012

congratulations for all these karts on the grid !!!

So, my problem : Vdrift try to start...it try to load...but it doesn't start...I'm sorry for lights informations :?

I've copied new build's components on old's components...


- NaN - 05-03-2012

That sucks. I can not fix a bug without any hints on what is failing.

Have you tried to delete C:\Users\{user}\Documents\VDrift? It should be created on vdrift start.

Maybe try to run it from console http://cdn2.groovypost.com/wp-content/uploads/2009/10/image_318.png

What are the specs of your machine, OS?


- NaN - 05-03-2012

I've upladed a version with debugger included: vdrift-gui-gdb.exe

- Delete user settings C:\Users\{user}\Documents\VDrift
- Start gdb.exe. You should see a console pop up.
- To load game symbols enter: file vdrift.exe
- To start debugging enter: run
- The game should start/crash
- To get more crash info enter: bt
- Copy content of the console and post here.
- To exit debugger enter: q

Also post content of log.txt if there is one.


- berzingue - 05-03-2012

Here it is :

[Image: 168984bug.jpg]

[Image: 559369bug2.jpg]

No log.txt


- NaN - 05-03-2012

Much better. I need to add a check to avoid the crash.

You are using wrong data. I guess https://vdrift.svn.sourceforge.net/svnroot/vdrift/vdrift-data/

Switch to https://vdrift.svn.sourceforge.net/svnroot/vdrift/branches/vdrift-data-gui


- berzingue - 05-03-2012

okaaay...
[Image: 601899bug.jpg]

must I rename "vdrift-data-gui" as "data" ?


- NaN - 05-03-2012

Yep.

If you have used TortoiseSVN before(to checkout data). All you have to do is: TortoiseSVN->Switch...
URL: https://vdrift.svn.sourceforge.net/svnroot/vdrift/branches/vdrift-data-gui


- berzingue - 05-03-2012

[Image: 601899bug.jpg]

Ok, but this error message appears !


- berzingue - 05-03-2012

I've made a new SVN update, this message appears...do you know why ?

[Image: 327322bug2.jpg]


- NaN - 05-03-2012

Quote:I've made a new SVN update, this message appears...do you know why ?
Some operation before might have failed. Try TortoiseSVN->Release Lock. If this doesn't work try TortoiseSVN->Revert. If this fails try reboot, hehe.


- CrystalH - 05-03-2012

@NaN, check out my commit
https://github.com/stuntrally/vdrift/commit/0b1325af808f9d079c101a40c358917891e76ddd
I think I fixed the sound overdrive.

This happens also when setting very high volume eg.
[sound]
volume = 10

It's because there are int values and need to be clamped to short -32767..32767.
I did it for each sound source and for whole out (the sum of them too).
Don't know about performance though, this goes for each sample.