HDRBlendable Xbox 360 performance and dual paraboloid point light shadow optimization.

While working on dual paraboloid point light shadows, at first I used two R32 textures for the shadow maps, one map per hemisphere of the point light.

Here’s a quick glimpse at what point light shadows are currently looking like with a deferred rendering setup, using a small 7 tap PCF filter and a 512×512 shadow map. The model used is Crytek’s Sponza model.

Point light shadows using dual paraboloid shadow mapping.

I wanted to save some texture bandwidth, so I tried to put one shadow map in the R channel of a R16G16 texture, and then the other shadow map in the G channel. However, you cannot use ColorWriteChannels on a non-blendable texture format in XNA (and HalfSingle textures are not blendable).

So I tried using two channels of a A2R10G10B10 texture instead (i.e. HDRBlendable on the Xbox). This worked, except that it didn’t give me the bandwidth savings I was hoping for.  It turns out that on the xbox, this format is stored as 32bpp in the EDRAM, but actually resolves to HalfVector4 (R16G16B16A16), 64bpp, when copying to system memory. So I was using the same amount of texture bandwidth in the end anyway, because the HDRBlendable format expands to twice the size on the xbox on resolve.

Instead, I’m experimenting with packing two float values into 32bpp 8bit/channel texture. The cons are:

  • Packing/unpacking costs time in the pixel shader.
  • Must switch blend state to mask the color channel when switching to drawing the next shadow map.
  • Lower precision (although this is not a problem at all if the point lights are small enough, and the fixed decimal point place is chosen well).

The pros are:

  • Half the texture bandwidth used to resolve the shadow map from the EDRAM to system memory.
  • Avoid having to switch render targets when drawing the next shadow map.
  • Save a little bit of texture bandwidth when reading from the shadow map (when drawing the light), because some lookups will use both channels at the same time. Mostly the R channel will have totally separate lookup locations from the G channel since the channels represent opposite hemispheres, but in some places (along the seams?) caching will save a little bit of bandwidth.

Whether using two textures or one texture with packing is better depends mostly on how much of a bottleneck texture bandwidth is vs fill rate.

There is yet another option.

For small shadow casting point lights, 8 bits of depth precision might be enough. Then up to four shadow maps can be stored in a single texture, without any extra encoding ALU costs. This might allow for many small shadow casting point lights.

This entry was posted in Coding, XNA and tagged , , . Bookmark the permalink.

190 Responses to HDRBlendable Xbox 360 performance and dual paraboloid point light shadow optimization.

  1. auto says:

    Everything is very open with a really clear explanation of the challenges.
    It was really informative. Your site is useful. Thank you for sharing!


  2. Temporary files are also created when you surf the Internet, and these files
    store information about the Web sites you visit. This
    is a sure sign about the type of treatment you should expect.
    We learn to fight the battles we can win, so
    reflecting on your past positive and negative
    experiences will help you choose the best prospects for a presentation.

  3. Lucretia says:

    Some of your friends might be interested and ask you to do some
    job. Do consider these internet business ideas that I have shared with you today.

    Niche refers to an area or subject like “cooking”, “games” or “electronics”.

  4. Peter writes for many national and local press publications and is widely respected as an expert
    in personal finance. A monthly income stream can be purchased by “pre-owned” Income Streams: One
    at a discount from various sources. Reevaluate your bra
    wardrobe at the beginning of every season.

  5. Bette says:

    It is best not to run the machine without break for long periods
    of time. Many vac producers flaunt their vacuums, however when you at
    some point order them, they fail to deliver on their claims.
    However, if you really need a vacuum that does deep cleaning, don’t buy
    a cheap one just to save money, as it won’t do you any good if your carpets aren’t properly cleaned.

  6. Another important step is to determine where you want to invest.

    This aspect of real estate marketing could also fall under communication and
    feedback. Whether the policy be crooked or the building isn’t sound, it is important to find the flaws in the sale if there are any.

  7. jody l kriss says:

    To increase the number of referrals that come your way, you need to be sure to provide excellent customer
    service and then simply ask for the names of a few people who may be interested in your services when you have closed the deal.
    This allows you to concentrate on multiple deals at one time.
    They say:”I heard that there are companies that will put my home on the MLS for a small fee.

  8. It’s an amazing article for all the online
    users; they will get advantage from it I am sure.

  9. The Consumer Information to Nice Design” is a information written particularly for design shoppers and non-designers.

  10. It is very important make a plan for the way you’ll spend your money.
    It’s a good idea to take a number of the cash that you just earn each month and put it into financial savings.

    You may want to start by saving to pay for a
    new car or putting money away for college. It
    is important in enterprise management.

  11. 1、 减少对天然资源消耗和减轻对生态环境影响。北美地区的增长声势缓和之后,年粮食总产量占全国十分之一强。二是产粮区域高度集中。而当前我省企业出口紧固件采取的低价竞争,此外我省紧固件企业即将上马的新产品也只是运用国外过了知识产权保护期的生产技术;二是中低端产品价格战泛滥,同比2013年涨幅高达20%,其中2014年第一季度原木进口量涨幅11%。进一步规范食品工业的发展条件,大力推动食品生产企业诚信建设等方面开展了一系列的有效工作。

  12. The other being, rap producers didn’t feel that female voices could supply the requisite
    loudness and abrasiveness that they felt was
    a serious characteristic of rap music.

  13. Enterprise purchasers receive accredited contracts more rapidly, whereas the attorneys are capable of deal with non-customary, excessive
    worth matters. Automation without programmers means automated
    legal processes you may trust. As a result of at any given time, half of the lawyers working
    on paperwork…are engaged on documents another person drafted.

  14. Be greatful that she is coming to your husband and asking vs the
    poor kids who get bounced round on a regular basis and do not study any stability.

  15. Forr example, not all dental professionals are learnt specific cosmetic dentistry treatments.

    my blog – mesa Invisalign

  16. Rock Band 4 makes an enormous effort to let you use virtually every single tune or plastic
    instrument you have ever purchased over the years, and whereas it is commendable what Harmonix has completed to
    cater to all kinds of returning clients, the sheer variety of configurations makes issues a bit’¦ complicated.
    And as a way to consolidate issues underneath the Rock
    Band four ‘platform’ and bring them to Xbox One and PS4, some
    things had to be left by the wayside.

  17. We have something for everyone in ann array of colors, designs as well as products, consisting
    of timeless porcelain ceramic tile, travertine tile as well
    as beautiful backsplash Maryland tile store [http://www.bizbooklocal.com].

  18. Over time micro organism and fungi can start to develop in the mucus,
    in which case you would possibly need antibiotics.

  19. Wideband receivers, such as the ICOM PCR1500/2500 gadgets, are superb candidates
    for monitoring purposes.

  20. Pour choisir parmi les nombreuses offres sur le web
    le produits afin d’etre de bon conseil.

  21. With local courier service in addition to nationwide courier and supply companies,
    A1Express can handle all of your similar day delivery needs.

  22. Für das Mastering benutzen wir ausschließlich Analog-
    und Digital-Equipment, das den höchsten professionellen Standards entspricht.

  23. HP 2-packs comprise 2 black toners and HP colour multi-packs
    contain CYM toners and supply the best worth and convenience for frequent printers.

  24. I can let you know from my expertise that orally taking 5 drops of a hundred twenty five mg cbd in virgin hemp seed oil a
    day helps dramatically with nervousness and
    persistent pains.

  25. Sooo tired had a rest but woke upto wonderful bed-hair (maybe I’d a stylist fairy visit throughout the night) oh and it is weighin morning.
    I lostthis week!!!

  26. I loved as much as you’ll receive carried out right here.
    The sketch is attractive, your authored material stylish.
    nonetheless, you command get bought an impatience over that you wish be delivering the following.

    unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case
    you shield this increase.

  27. Rest assured with the knowledge that your staff is utilizing the
    identical anti-money laundering coaching that’s trusted by over eighty,000 folks in 60 international locations.

  28. It is dependent upon every little thing from size of the
    dog, intensity of the exercise, climate, and naturally
    the person canine.

  29. If we settle for that no medication is the right case scenario
    for passing the drug take a look at, then the artificial urine is
    the second finest.

  30. Simply wish to say your article is as astonishing. The clarity to your post
    is simply nice and i can think you are knowledgeable in this subject.
    Fine with your permission let me to grab your RSS feed to keep up to date with imminent post.
    Thank you 1,000,000 and please continue the gratifying work.

  31. Using natural methods to cure hemorrhoids
    can be a safe and effective treatment. Finally, quick food digestion results
    in an immediate discharge of sugar into people’s blood stream.
    Regular warm baths are a highly-recommended home cure
    for hemorrhoids.

  32. Crackle glaze does as the name suggests, it creates a crackle effect finish on the surface
    of wood and makes it appear older than what it actually is.
    After two hours the meat ‘seals’ and nothing else can penetrate
    the meat. A soft paint look perfect for your newly decorated roomï
    ¿½And since you have the technique down to a science, why not come
    and do my family room.

  33. It has been estimated that 95 of people will have at least a mild case of acne at some point in their lives.
    Most of poor quality could enable locks branching or dried out.
    The powder brush is used to apply face powder all over
    the face.

  34. I love the fact that we are discussing a space race between two very rich and super ambitious We are witnessing something

  35. A paragliding school can supply a slew of packages and services like paragliding courses, rides, tandem paragliding,
    weekend flying journeys, paragliding vacation packages,
    corporate offsite and outbound getaways, etc.

  36. horny says:

    If you desire to improve your experience only keep visiting this site and be updated with the hottest gossip posted here.

  37. poker rules says:

    I’ve been exploring for a little bit for any high quality articles
    or weblog posts on this sort of area . Exploring in Yahoo I at last stumbled upon this
    web site. Reading this information So i’m glad to show that I have an incredibly excellent
    uncanny feeling I found out exactly what I needed.

    I such a lot definitely will make certain to do not fail to remember this web
    site and provides it a glance regularly.

  38. I believe that is one of the such a lot significant info for me.
    And i am happy reading your article. However should commentary on some normal things, The web site taste is perfect, the articles is in reality nice :
    D. Just right task, cheers

  39. shopping says:

    You ought to take part in a contest for one
    of the greatest blogs on the internet. I’m going to recommend
    this site!

  40. Clarice says:

    There’s certainly a lot to know about this issue. I love all the points
    you made.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>