Welcome to TechNet Blogs Sign in | Join | Help

P-12C Pilot

The Flight Simulator experience and other tangential thoughts
No More "Blurries?"

Adam has been working hard on our scenery system and he has recently checked in a fix that should remove most of the blurries from FSX. That said, if you're flying a fast aircraft with autogen and other stuff cranked up, you can still outpace the updates, but from my own tests on my machine, the difference is night and day. Finally I can see the ground in all of it's 1 meter glory while I am flying!

Here is an excerpt from the check-in mail that explains what was going on and what he did to fix it (I asked Adam if it was okay to post). Another angle Adam is pursuing is to make the anisotropic filtering more aggressive which should sharpen the images much better (but that isn't checked in just yet).

Bugs:  Flight Simulator 10 - Prevent fiber starvation
 
Description of problem: The terrain textures seem to go blurry really quickly as you move around the world. Even after you stop moving, it takes forever for the terrain textures to become sharp again. 
Description of fix: There were several causes of this problem.

1. The percentage of frame time given to worker fibers (10%) was simply too stingy for the amount of texture work needing to be done. This change increases the target fiber time allocation to 33%. This value is configurable via the following variable in fsx.cfg:

[Main]
FIBER_FRAME_TIME_FRACTION=0.33

2. The terrain texture compositor was being swamped by requests from AI boats for land/water masks and by autogen for class maps. This left little time to process requests for textures by the terrain. To even the playing field, the texture compositor now has three separate request queues: one for terrain textures, one for autogen class maps, and one for any other type (i.e. land/water masks for boats). The queues are serviced in a round-robin fashion to keep any one client from overpowering the others.

3. The terrain was simply too casual about scheduling new textures to be built. It would only request two at a time, after which it would go off and retriangulate the mesh and do other time-consuming tasks. Now the terrain will process 20 incoming textures before moving on to other tasks.

4. The AI boats sometimes make redundant requests for land/water masks that put additional strain on the terrain texture compositor. To reduce the number of redundant requests that actually require the attention of the texture compositor, improve the caching of existing land/water masks by giving them their own LRU cache and make it big enough to hold a full set for a given scene. The memory penalty is small because land/water masks are only single bit images.

NOTE: There is still one cause of the "blurries" that this checkin does not address. If we attempt to use more texture memory than the hardware supports, some textures may be forced to render with reduced resolution. This is unfortunately beyond the control of the terrain engine and it depends upon the other objects in the scene and the particulars of the user's hardware.

Posted: Sunday, August 20, 2006 5:05 PM by P-12C

Comments

crisberg said:

Amazing news! Can't wait to see that sharpness in the final release.

The icing on top of the icing of this cake would be if Adam could find a way to ship off part of those fibers to the 2nd (and soon 3rd and 4th) processors doing almost nothing at the moment...

Not complaining, mind you! Just getting carried away by the blurry-less dream here...
Cristian.
# August 21, 2006 1:39 AM

Dennis_k said:

That's great to hear Paul!
Can't wait for the final product. Even got myself a new computer, just for FSX.
# August 21, 2006 5:30 AM

Francois_Dumas said:

Excellent news Paul... and 3 cheers for Adam !! :-))

François
# August 21, 2006 8:30 AM

vfr said:

Absolutely superb news!

If there is one "feature" in FS2002/4 that I'd bet the FS commumity really is desperate to see fixed in FSX, then the "blurries" would be pretty near the top of the list.  

I'd buy FSX on the strength of this fix alone.....

Thanks Adam!

Andrew
# August 21, 2006 3:54 PM

P-12C said:

So I have been flying with these fixes in my build and it's the first time I've really thought the sim visuals were amazing. Considering we get a little jaded and see it all the time, it takes a lot to really impress us, and what I just saw motoring around in the Beaver was awesome :)

The detail of the terrain textures combined with autogen was spectacular and it even held up well while I was in 4X accelerated time while I went from Seattle to Friday Harbor.

Good stuff!
# August 22, 2006 1:56 AM

vfr said:

Paul

These fixes sound really promising!

Do you expect this would also improve the sharpness of photo scenery add-ons?

# August 23, 2006 12:51 AM

P-12C said:

I don't really know if it will help photoscenery or not.
# August 23, 2006 2:03 AM
Anonymous comments are disabled
Page view tracker