Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DX10 Flashing Runways - Experimental Shader

Featured Replies

  • Author
  • Commercial Member

Goodness me - you wait 5 years for a global fix to flashing runways and two come along within a month.

I have just spotted (google) that poster opv on the rex2 forums beat me too it and posted a fix on May 2nd

 

http://www.realenvir...ing-taxi-marks/

 

His solution is to raise the height of the runways and markings in the VS shader so that they are above the taxiway whereas mine corrects the accidental storing of the taxiway depths in the Z buffer.

 

As far as I can see his approach is entirely feasible so kudos to him!

  • Replies 540
  • Views 139.2k
  • Created
  • Last Reply

Top Posters In This Topic

If 2x AA is enough for you and if you don't mind a few flickering textures by night, it perfectly flyable. Visually, it can even be quite stunning as FSX bloom looks so much better than ENB in my opinion and that without impacting your frames. We've been waiting for ages for this fix and on the way, you might even gain a few FPS so why wait ? Your mileage may vary but there is nothing to lose. Moving back to dx9 is just a checkbox away.

+100

This is a biggest break through since Word Not Allowed's tweak. I copied your NVI setings Jean-Paul, and works a treat with Steve's fix.

I used to get terriable texture flashes at some airports with the bufferPool=0, now that does not happen. I get a wee bit of shimmering, but not enough to be a show stopper. Great find.

System: MSFS2024, ASUS Rog Stryx Z790-A,  Intel i9-14900KF,  Asus ROG Ryujin III 360 , Asus Hyperion Case,Rog Stryx 4090 OC, Samsung 970 EVO M.2 SSD, 1Tb Samsung 860 EVO SSD,64Gb G Skill Memory, Asus Aura 1200W Gold PSU,Win 11 ,LG C4 48" 4K OLED Screen., Airbus TCA Full Kit, Stream Deck XL. WinWing FCU, EFIS, MCDU

 

Just wanted to report in that I tried this out yesterday and it worked great for me! Now if only a shader can be changed to prevent the transparent areas of fences and such from turning solid black from certain angles, then my 2 main issues with DX10 would be completely resolved! :) Thank you for figuring this out!

 

 

-George

Happy Flying!

-George

ftx_supporter_avsim.gif

It certainly solves the flashing runways for me.

 

It doesn't seem to break anything else, but I'll keep looking.

 

Many thanks

 

Peter

stevejp, thanks for this, it really works! I'm still playing around but I never thought I'd see the day that DX10 became a real option in FSX. I have an old machine but the performance is incredible thanks to people like you. This particular trick could end up in the top 2 or 3 of all the tweaks.

  • Author
  • Commercial Member

 

 

Ok here is a new version.

 

It includes an experimental fix for the wire fences that become opaque at different viewing angles - check out Friday Harbor to see this - the fence is dark but if you change the angle from the spotter plane it becomes transparent.

 

Note the fence fix is disabled by default - instructions follow on how to enable it.

 

To make it easier to roll out any changes I have changed the method for patching the shader file.

 

If you have already made the changes its easiest if you revert back to the original general10.fx (you did take a copy right?!) Otherwise ask and I'll post some instructions.

 

 

The new instructions are

 

 

1) back up the general10.fx from the main FSX directory FSX\ShadersHLSL\General (in fact backup the whole directory!)

 

2) Confirm that you really did step 1

 

3) Place the two attached files into the directory FSX\ShadersHLSL\General

 

The two files are PatchGeneral10.txt and PatchOptions.txt.

 

Note I used txt as a file type just so I can upload as attachments - I promise I will figure out how to use the library at some point!

 

4) edit the file General10.fx and delete the last 9 lines starting from the line

"technique10 T0"

 

5) at the end of the file insert the following line

 

#include <PatchGeneral10.txt>

 

6) Go to AppData/Microsoft/FSX and delete the subdirectory Shaders10 (FSX will recreate it)

 

8) Run FSX

 

 

Thats all. If the spinning plane screen is black then the shader didnt compile.

 

In that case restore the backup you took at step 1 and run FSX again - checking it stil works

 

then try again!

 

 

Finally to try the fence fix edit the file PatchOptions.txt and change the number at the end of this line

 

#define OPAQUE_FENCES_PATCH 0

 

to be a 1 rather than a 0

 

 

 

Steve, thanks for all your hard work and the benefit it has provided to this community. Any chance you might be able to come up with a fix for the other DX10 issues, or are they only going to be solvable by the add-on creators that have incompatible add-ons?

Thanks Steve. Fences are no longer opaque :Applause:

KInd regards

Jean-Paul

I7 8700K / Fractal Design Celsius S24 watercooling / ASRock Z370 Extreme4 motherboard / Corsair 32GB 3200mhz DDR4 / INNO3D iChiLL GeForce GTX 1080 Ti X3 / Samsung SSD 960 EVO M.2 PCIe NVMe 500GB / Seasonic-SSR-850FX power supply / Fractal Design Define R5 Black case / AOC Q3279VWF 32″ 2560x1440 monitor / Benq GL2450 24″ 1920x1080 monitor / Track-IR 4

  • Author
  • Commercial Member

Thanks Jean-Paul!

 

I am slightly less confident about the fence fix, it depends on what else that combo of shader options gets used for, I worry that we may find semi transparent cars or something!

 

If you see anything odd turn the option off and see if it's my change or just dx10

 

Steve

  • Author
  • Commercial Member

Steve, thanks for all your hard work and the benefit it has provided to this community. Any chance you might be able to come up with a fix for the other DX10 issues, or are they only going to be solvable by the add-on creators that have incompatible add-ons?

 

What I have is a tool ( intel gpa) that lets me examine a frame and look at how a faulty element gets drawn.

 

I can then see which compiled shader is used. I have now largely figured out how the shader options map to the names of compiled files.

 

If the problem is in fsx itself and it's a simple dx10 state setting and the compiled shader isn't also used for something else with a different state then it may be fixable.

 

What cannot be fixed by a shader are missing textures, vsync or anti aliasing or plain missing code.

eg I assume that the progressive taxi just isn't drawn I doubt it's invisible but I will take a look!

 

Update: I just did look - to my surprise DX10 is drawing the progerssive taxi - it just isn't actually visible to us. Whether its fixable I don't know yet ...

 

 

What problems were you thinking of?

Thanks Steve! Finally a DX10 fix. I am using your method describe in post #53. The Flashing runway in DX10 Preview is fixed. However, I'm experiencing fsx go into window mode and pause about 2-3 minutes after take off and again just before landing. Maybe just only me as no one mention about this problem yet. Do I need to change anything in the .cfg file or Nvidia Settings? At the moment I'm using Jean-Paul NI settings posted here.

Anthony Jorje

Intel i7-9700K 5.0 GHz / Aorus Z370 / Corsair 32 GB DDR4 / MSI Gaming X Trio RTX 2080Ti / Win 10/64  Ver.2004                                     

the new one works. i was worried hud transparency could get affected but looks fine (vrs f/a18).

 

i wish alpha fading can be fixed but i guess that's more of a core rendering issue than a shader issue.

 

thanks again.

R9-9950X3D 32G  | RTX5090 | 3T m.2 | Win11 | vkb-gf ultimate & pedals | virpil cm3 throttle | tm boeing yoke | pimax super uw | DCS

 

 

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.