Author Topic: (Vulkan) Stardust demo/benchmark  (Read 4736 times)



0 Members and 1 Guest are viewing this topic.

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3820
    • View Profile
(Vulkan) Stardust demo/benchmark
« on: April 21, 2016, 06:41:38 PM »
   The Stardust sample application uses the Vulkan graphics API to efficiently render a cloud of animated particles.

For some reason it fails with NVIDIA GeForce 840M and driver 364.91/364.96
But it works fine with Intel Broadwell HD 5500 and patched driver 20.19.15.4404  :P


 

nuninho1980

  • NewsPosters
  • Full Member
  • *
  • Posts: 131
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #1 on: April 22, 2016, 02:34:37 PM »
I've Win 10 and GTX 780 Ti Classified with 364.51WHQL. I got crash this new demo despite no errors. :S

Therefore, likely Visual Studio (C#, C++, ...) runtime is abnormal after update OS from Win 8.1 x64 to 10 - Crash too AMD TressFX 3.0 and Nero Burning ROM 10 Portable (2010).
« Last Edit: April 22, 2016, 04:52:26 PM by nuninho1980 »

nuninho1980

  • NewsPosters
  • Full Member
  • *
  • Posts: 131
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #2 on: April 22, 2016, 04:57:00 PM »
I tried to install Intel driver same version without "patched" for HD 4600 and I run VK-Z 0.2.0 but it detects 1 device as GTX 780 Ti and doesn't support HD 4600.

How do I patch Vulkan for HD4600?

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3820
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #3 on: April 22, 2016, 07:22:01 PM »
I tried to install Intel driver same version without "patched" for HD 4600 and I run VK-Z 0.2.0 but it detects 1 device as GTX 780 Ti and doesn't support HD 4600.

How do I patch Vulkan for HD4600?

1) patch igdlh64.inf with Notepad++

[iHSWM_w10]
FeatureScore=D1
CopyFiles=igfx.Miniport,

[iHSWM_w10]
FeatureScore=D1
CopyFiles=Vulkan.Copy , Vulkan.Copy32, igfx.Miniport,

2) there is an issue in the runtimes giving all iGPUs the same device name: "GPU"
patch igvk64.dll and igvk32.dll with a hex editor

VK_KHR_win32_surface....
GPU.....
18:42:19........20.19.15

VK_KHR_win32_surface....
HD 4600.
18:42:19........20.19.15



3a)
disable driver signature - secure boot off

 bcdedit -set load options DISABLE_INTEGRITY_CHECKS
 bcdedit -set test signing ON

3b)
 disable driver signature - secure boot on

 bcdedit -set load options DISABLE_INTEGRITY_CHECKS
enable test signing via enhanced start options

4)
Follow this fool-proof "havedisk" installation tutorial


5) check with VK-Z or Vulkan Hardware Capability Viewer

nuninho1980

  • NewsPosters
  • Full Member
  • *
  • Posts: 131
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #4 on: April 23, 2016, 07:42:22 PM »
1) patch igdlh64.inf with Notepad++

[iHSWM_w10]
FeatureScore=D1
CopyFiles=igfx.Miniport,

[iHSWM_w10]
FeatureScore=D1
CopyFiles=Vulkan.Copy , Vulkan.Copy32, igfx.Miniport,
I edited that in "normal" notepad (Windows), ok?

Quote
2) there is an issue in the runtimes giving all iGPUs the same device name: "GPU"
patch igvk64.dll and igvk32.dll with a hex editor

VK_KHR_win32_surface....
GPU.....
18:42:19........20.19.15

VK_KHR_win32_surface....
HD 4600.
18:42:19........20.19.15
Maybe device name is wrong. My i7-4790K has iGPU as "Intel(R) HD Graphics 4600".
I edited that in Hex Editor Neo 6.20.

Quote
3a)
disable driver signature - secure boot off

 bcdedit -set load options DISABLE_INTEGRITY_CHECKS
 bcdedit -set test signing ON

3b)
 disable driver signature - secure boot on

 bcdedit -set load options DISABLE_INTEGRITY_CHECKS
enable test signing via enhanced start options
Run cmd (admin) and run "bcdedit..." but I got:
Code: [Select]
The element data type specified is not recognized, or does not apply to the
specified entry.
Run "bcdedit /?" for command line assistance.
Element not found...

I booted to choose "Disable Signed Driver Enforcement".


I tried to patch and to update driver with success... but VK-Z doesn't detect HD 4600 yet because look "bad" 2nd and 3rd steps.

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3820
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #5 on: April 25, 2016, 06:33:17 PM »
I edited that in "normal" notepad (Windows), ok?

Windows' notepad dislikes big text files, also make sure the file is not saved as IGDLH64.INF.TXT

Maybe device name is wrong.

It's hard coded "GPU" for any GPU. I informed the developer, maybe he handles it in future correctly like with the Linux driver.
However patching it is only for your convenience, but not mandatory.
 
Run cmd (admin) and run "bcdedit..." but I got:...
I booted to choose "Disable Signed Driver Enforcement".
I tried to patch and to update driver with success... but VK-Z doesn't detect HD 4600 yet because look "bad" 2nd and 3rd steps.

I had noticed a BCDEDIT issue last autumn, and used an older version from WINDOWS.OLD folder at the time.



Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3820
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #6 on: April 26, 2016, 10:28:55 PM »
Sascha Willems forked a version fixed for AMD GCN 1.0 and NVIDIA

Demo runs 10 fps slower on NVIDIA 840M than on Intel HD 5500
Looks like there is room for optimisations...


VisorZPro

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #7 on: May 26, 2016, 12:47:58 PM »
Yes, there is room. Get the Stardust demo from GitHub https://software.intel.com/en-us/articles/using-vulkan-graphics-api-to-render-a-cloud-of-animated-particles-in-stardust-application and install VisualStudio Community Edition and register to M$.

In the file settings.h you can change:

// Number of points per draw call
#define k_Def_Batch_Size 10

to a higher value, e.g. 500. Build and run and instead of ~80 fps I get 245 fps when the stardust cloud fills the whole screen and 538 fps when it almost collapses into 1/20th of the window area.




Thank you Intel for providing the code. It is a nice framework and uses SDL2.

Edit: as I could read in their documentation; the purpose of the demo is to generate an extreme amount of draw calls which could be individual objects. That is why they take 2.000.000 points and put only 10 of them in on batch to make it a draw call. The result is better distribution of draw calls to all cpus which was not possible in OpenGL before. It seems for me, that the value 10 is actually that low, resulting in 200.000 draw calls, that not the gpu, nor the cpu is the limiting factor then, but the memory bandwidth to the gpu. Each draw call of 10 batches has its overhead. That is why my fps is low at 80 with 10 points per call, and I get over 300 fps with 500 points per call but in both scenarios my CPU is only used to ~50%.
« Last Edit: May 26, 2016, 02:17:50 PM by VisorZPro »

nuninho1980

  • NewsPosters
  • Full Member
  • *
  • Posts: 131
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #8 on: June 27, 2016, 07:19:49 PM »
I got 410 fps running Win 7 x64 SP1 with i7-4790K@4.4GHz HT and new GTX 980 Ti SC+ with 368.39WHQL (HQ). :D

PS: I've received new EVGA GTX 980 Ti SC+ ACX2.0+ on june 20th :D after GTX 780 Ti classy RMAed because this old card got render failed at various times on Octane Render. ;)
« Last Edit: July 02, 2016, 12:11:14 AM by nuninho1980 »

okieiam

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #9 on: February 17, 2017, 05:16:05 PM »
I tried to install Intel driver same version without "patched" for HD 4600 and I run VK-Z 0.2.0 but it detects 1 device as GTX 780 Ti and doesn't support HD 4600.

How do I patch Vulkan for HD4600?

1) patch igdlh64.inf with Notepad++

[iHSWM_w10]
FeatureScore=D1
CopyFiles=igfx.Miniport,

[iHSWM_w10]
FeatureScore=D1
CopyFiles=Vulkan.Copy , Vulkan.Copy32, igfx.Miniport,

2) there is an issue in the runtimes giving all iGPUs the same device name: "GPU"
patch igvk64.dll and igvk32.dll with a hex editor

VK_KHR_win32_surface....
GPU.....
18:42:19........20.19.15

VK_KHR_win32_surface....
HD 4600.
18:42:19........20.19.15



3a)
disable driver signature - secure boot off

 bcdedit -set load options DISABLE_INTEGRITY_CHECKS
 bcdedit -set test signing ON

3b)
 disable driver signature - secure boot on

 bcdedit -set load options DISABLE_INTEGRITY_CHECKS
enable test signing via enhanced start options

4)
Follow this fool-proof "havedisk" installation tutorial


5) check with VK-Z or Vulkan Hardware Capability Viewer

Exact follow for HD 5500 [iBDWM_w10] did not success?
« Last Edit: February 17, 2017, 05:55:51 PM by okieiam »

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3820
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #10 on: February 17, 2017, 06:10:10 PM »
Exact follow for HD 5500 [iBDWM_w10] did not success?

Many GPU tools are fooled by NVIDIA Optimus.
Open NVIDIA control panel, goto 3D settings/program settings
add a profile for VulkanCapsViewer and force Intel

Also there is a newer driver for older rigs: Intel HD Graphics Driver 20.19.15.4473 Vulkan


NB your picture host is pretty slow, try TPUCapture


okieiam

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #11 on: February 17, 2017, 06:27:15 PM »
Exact follow for HD 5500 [iBDWM_w10] did not success?

Many GPU tools are fooled by NVIDIA Optimus.
Open NVIDIA control panel, goto 3D settings/program settings
add a profile for VulkanCapsViewer and force Intel

Also there is a newer driver for older rigs: Intel HD Graphics Driver 20.19.15.4473 Vulkan


NB your picture host is pretty slow, try TPUCapture
Hello @Stefan but that driver 4473 is for Skylake?
For patched 4404, I disable discrete card, force Intel, VulkanCapsViewer reports "did not found Vulkan capable GPU"
Can you post your forged vulkan driver for 5500?
Thank you in advance!

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3820
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #12 on: February 17, 2017, 07:28:50 PM »
Hello @Stefan but that driver 4473 is for Skylake?
For patched 4404, I disable discrete card, force Intel, VulkanCapsViewer reports "did not found Vulkan capable GPU"
Can you post your forged vulkan driver for 5500?

Yes 4473 still needs to be patched, but only the INF
Meanwhile there is an official download
https://software.intel.com/en-us/blogs/2016/06/29/new-intel-graphics-test-driverdriver-for-windows-10-and-windows-781-15404473
Edited INF
https://drive.google.com/file/d/0BykQ4pHxfGQWOFFON1FDRTRxUE0/view


okieiam

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: (Vulkan) Stardust demo/benchmark
« Reply #13 on: Today at 09:35:43 AM »
You machine is amazing
Is your HD 5500 desktop or laptop?
I can not enable it on my Laptop Core i3 5020U