The online racing simulator
Searching in All forums
(21 results)
BulliT
S3 licensed
I saw that you expect that sleep(1) will give you 1ms sleep. Thats not garanteed although it might happen.
Here are some info about what happens behind the sleep api:
https://software.intel.com/en-us/articles/benefitting-power-and-performance-sleep-loops
I guess you already keep track of your own time with QueryPerformanceTimer and just want to give up some time to the OS sometime? Messy problem! Wink
BulliT
S3 licensed
There are some links there with more info about the manifest:
http://systemsengineering.word ... t-to-a-vista-application/

Vista shows a dialog when you start the app that contains the manifest (if you require higher privilege) and asks if you as the user wants to give the program the higher privilege.
"Loaded" BMW M3 does 7.22,8 on the ring
BulliT
S3 licensed
Saw that Zonda video and I thought you got to see this aswell:
http://www.youtube.com/watch?v=ZL7T9BD_Q3k
It's a modded but street legal - www.loaded.se
BulliT
S3 licensed
Great work Bob, works very well to dial in the balance you want an a specific track
BulliT
S3 licensed
Cheers Scawen, you have done it as you should as usual
BulliT
S3 licensed
Quote from Scawen :
As the higher number of polygons affects you so badly, I suspect your graphics card is something really old like a GeForce2 or similar, which cannot do Hardware Vertex Shading? If you can't switch on HVS (at bottom of the graphics options screen) then it's really too old now. The thing is that HVS is several years old now and you should be able to get a basic DirectX graphics card (a few years old model) for a few pounds from somewhere - if there's one thing you can do, that's it! And any one you can get will immediately give you high frame rates at high LOD levels.

There is also loads of laptops without HVS. I posted an improvement suggestion in case you haven't enabled the Intel/AMD optimized software mode.
http://www.lfsforum.net/showthread.php?p=368182
Software Vertex Shader support
BulliT
S3 licensed
I want to know if you could enable software vertex shader support if you haven't already. This might increase FPS for us without Hardware Vertex Shader support but with a fairly new processor.

Intel has a guide for their chipsets here:
http://www3.intel.com/cd/ids/d ... /recent/334680.htm?page=7
Paste from that page:

DWORD SetVertexProcessingMode( LPDIRECT3D9 pD3D ) { DWORD vertexprocessingmode; // vertex processing mode D3DCAPS9 caps; // Device CAPs structure D3DADAPTER_IDENTIFIER9 adapterID; // Used to store device info // Retrieve device capabilities if( g_pD3D->GetDeviceCaps( 0, D3DDEVTYPE_HAL, &caps ) != D3D_OK ) { return E_FAIL; // exit if reading caps fails... } // Check if hardware T&L is supported... // - The D3DDEVCAPS_HWTRANSFORMANDLIGHT capability should // be enabled for GMA X3000 if ( ( caps.DevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT ) != 0 ) { vertexprocessingmode = D3DCREATE_HARDWARE_VERTEXPROCESSING; } else { // Check vendor and device ID and enable software vertex // processing for Intel(R) Graphics... // Gather the primary adapter's information... if( g_pD3D->GetAdapterIdentifier(0,0,&adapterID ) != D3D_OK ) { return E_FAIL; } if ( ( adapterID.VendorId == 0x8086 ) && // Intel Architecture ( adapterID.DeviceId == 0x2A02 ) || // GM965 Device 0 ( adapterID.DeviceId == 0x2A03 ) || // GM965 Device 1 ( adapterID.DeviceId == 0x29A2 ) || // G965 Device 0 ( adapterID.DeviceId == 0x29A3 ) || // G965 Device 1 ( adapterID.DeviceId == 0x27A2 ) || // 945GM Device 0 ( adapterID.DeviceId == 0x27A6 ) || // 945GM Device 1 ( adapterID.DeviceId == 0x2772 ) || // 945G Device 0 ( adapterID.DeviceId == 0x2776 ) || // 945G Device 1 ( adapterID.DeviceId == 0x2592 ) || // 915GM Device 0 ( adapterID.DeviceId == 0x2792 ) || // 915GM Device 1 ( adapterID.DeviceId == 0x2582 ) || // 915G Device 0 ( adapterID.DeviceId == 0x2782 ) || // 915G Device 1 { vertexprocessingmode = D3DCREATE_SOFTWARE_VERTEXPROCESSING; } else { // Chipset does not meet minimum requirements... return E_MINSPEC; } } return vertexprocessingmode; }

Sorry for the non patch related question...
BulliT
S3 licensed
Scawen, you talked before about removing the Hardware Vertex Shader option. I was just wondering if the HVS path is totally different to the non HVS path or if you just create the device with D3DCREATE_SOFTWARE_VERTEXPROCESSING instead?
I got the Intel G965 chipset so I use the software path now since intel haven't fixed their drivers yet. Works alright when there is not that many people around but gets quite sluggish even with a Core2 Duo 6600 at the start of the race.
For those in the same boat you can see Intels latest info here: http://www.intel.com/support/g ... ntelg965/sb/CS-025665.htm
BulliT
S3 licensed
Is there a curb sound? If so maybe raise it a bit?
BulliT
S3 licensed
I think the traction control sounds a bit to loud (or to much bass) on the BF1.
You are getting there though
BulliT
S3 licensed
My guess is that it could be an old onboard audio driver that is causing the FPS drop.

The motherboard manufacturer might have an updated driver on their website.
www.asus.com.tw
www.abit.com.tw
www.intel.com
www.nvidia.com
etc

There is also drivers directly from the audiochipset manufacturer (usually more frequently updated):
Realtek - http://www.realtek.com.tw/downloads/
CMedia - http://www.cmedia.com.tw/?q=en/driver
BulliT
S3 licensed
I found some notes on what to do and what not to do with directsound.
For example that the writecursor in IDirectSoundBuffer::GetCurrentPosition is bad and that you should maintain your own. It's very old but might be applicable today aswell.

www.gamedev.net/reference/articles/article710.asp

Read from googles cache if link above is down:
http://www.google.com/search?h ... sp&btnG=Google+Search




There is also info stating that one should use DSBCAPS_GETCURRENTPOSITION2 to get a more exact position.

(I'm bored at work and thought I'd work google a bit hehe...)
Last edited by BulliT, .
BulliT
S3 licensed
I love the technical side of things! I can feel your pain Scawen...
How about an updated testprogram with the new method?
Then it might be possible to see if it's an LFS issue or an waveout callback issue.
I guess you will be an expert on sound when you are done
Add minidumps so that it's easier to send good crashreports.
BulliT
S3 licensed
I'm suggesting that you add minidump crashreports to LFS that outputs to a known folder below the lfs directorytree.
Then it will be easy to send them by either email or maybe a "upload crashreport" button on lfsworld.

http://www.codeproject.com/deb ... rtemdebug_standalone1.asp
Clever trick - http://www.codeproject.com/tools/minidump.asp#xx1446237xx
BulliT
S3 licensed
I hope Scawen added code to blow the engine after a couple of laps, wouldn't be real enough without a huge cloud and oil on the track... it's a BMW :-)
BulliT
S3 licensed
Quote from tristancliffe :Does typing /restart not vote?

It doesn't vote, it only works in singleplayer or in hotlapping.
BulliT
S3 licensed
Quote from herki :
@BulliT: you need the logitech profiler or a similar tool to bind Shift+R to your wheel

no not anymore, scawen added so that you can bind CTRL-F9 to CTRL-F12 to buttons on your wheel in the Q patch.

Quote from Barroso :try /restart

that works only when you are hotlapping or on a local server. not on the internet.
Binding restart to wheel
BulliT
S3 licensed
What should I put in the CTRL-F9 textbox to be able to restart from the wheel?
Tried a few variants but nothing works...
BulliT
S3 licensed
Quote from Scawen :Sorry but that can't be fixed - it's the side-effect of a fix for a much worse problem.

LFS now uses the windows virtual key codes, for keys like 'T' and '/' and '1' and '2' etc... And that's more to do with position on the keyboard than the actual character. On the UK keyboard, the '/' key is the 3rd character after the letters on the bottom row (= the key to the left of the right shift key). It's possible you may find that key does the '/' function that you are expecting on the SHIFT+7.

Now that sounds like a problem but the alternative is worse : people with totally different keyboards (like Cyrillic or Greek) had to switch to Latin keyboard every time, just to press the 'T' key, then back to their own keyboard to type the message. That made it very hard for them.

Alright, I can press the key next to ENTER to get it now
' or * on swedish keyboard.
Will be hard to document that stuff scawen, hehe
BulliT
S3 licensed
Before I installed P9 I could type:
/w pb
and get my pb without making a message.
Now I have to press T for message and then type /w pb in the message field to get it.
/ = shift 7 on a swedish keyboard.

Attached screenshot if language_kb test program.
FGED GREDG RDFGDR GSFDG