[Rev 03] RFR: 8217472: Add attenuation for PointLight

Nir Lisker nlisker at openjdk.java.net
Tue Mar 17 02:52:36 UTC 2020


On Sat, 14 Mar 2020 15:31:18 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> I'll attach the above modified testcase that I ran. I ran it on a relatively new Windows 10 laptop and a rather ancient
>> MacBook Pro. I had to drastically reduce the number of quads on the Mac, but the results are similar: no significant
>> difference between the current code and the proposed patch for point lights (without attenuation).  I'd like to see
>> results on a recent machine with a graphics accelerator (either NVIDIA or AMD/ATI) to see if the new shader hurts
>> performance there, but I suspect it will be fine.
>
> Updated test case: [attenTest2.zip](https://github.com/openjdk/jfx/files/4332937/attenTest2.zip)

On Win 10 with an AMD RX 470 4GB I get the following:

Without the patch:
200 quads average 113 fps
5000 quads average 11.5 fps

With the patch:
200 quads average 106 fps fps
5000 quads average 8.5 fps

Will test on Ubuntu later.

-------------

PR: https://git.openjdk.java.net/jfx/pull/43


More information about the openjfx-dev mailing list