Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Test Builds => Topic started by: m!m on September 24, 2017, 05:34:32 am

Title: Bindless Texturing test builds
Post by: m!m on September 24, 2017, 05:34:32 am
I have been experimenting with a few ways of optimizing the graphics performance of FSO in the past few weeks and one of those optimizations uses a rather new way of addressing textures in our shaders. This should improve the CPU overhead while rendering the scene so these changes should be especially useful for people with less powerful CPUs.

Here are the builds for all platforms: http://swc.fs2downloads.com/builds/test/bindlessTextures/

I would like to know if these changes work at all (it should be enabled on recent AMD and Nvidia GPUs) and if you see any performance improvements. As far as I know, Intel does not support this extension but a few tests with those GPUs certainly wouldn't hurt to make sure that FSO still works even if the extension is not available.
Title: Re: Bindless Texturing test builds
Post by: tomimaki on September 24, 2017, 08:32:26 am
Works ok in game on Nvidia and Intel. But it crash (on both GPUs) in F3 Lab when I choose debris for any ship.
Title: Re: Bindless Texturing test builds
Post by: m!m on September 24, 2017, 08:57:18 am
Thank you for the report. I found the issue and fixed it. The builds above should be fixed relatively soon.
Title: Re: Bindless Texturing test builds
Post by: Trivial Psychic on September 24, 2017, 11:34:07 am
Is this something that would be enabled on an AMD 5770 GPU?
Title: Re: Bindless Texturing test builds
Post by: The E on September 24, 2017, 11:41:53 am
Is this something that would be enabled on an AMD 5770 GPU?

The 5770 should support the necessary extensions, but you should definitely test it!
Title: Re: Bindless Texturing test builds
Post by: m!m on September 24, 2017, 11:56:59 am
The current builds do not indicate in an obvious way if bindless texturing is used so I updated the branch so that it prints that information on launch. The test builds above should be updated soon.
Title: Re: Bindless Texturing test builds
Post by: tomimaki on September 25, 2017, 05:05:38 pm
Code: [Select]
Checking graphics capabilities:
  Bindless texturing: Disabled

Well, atleast I tested it on usupported hardware :P

edit:
I found some issues.
Cutscenes doesn't scale up.
And other is visible on screenshot. First is from normal build, second is from bindless.

[attachment stolen by Russian hackers]
Title: Re: Bindless Texturing test builds
Post by: m!m on October 08, 2017, 11:00:23 am
That's weird since the changes do not change how the briefing window is drawn but some of the other changes may have broken that. Just to confirm, are you using the newest nightly build as the "normal" build?
Title: Re: Bindless Texturing test builds
Post by: tomimaki on October 08, 2017, 05:28:22 pm
Yes, it was 17 september build.
Title: Re: Bindless Texturing test builds
Post by: m!m on October 16, 2017, 11:30:38 am
I cannot reproduce your issue with retail FS2 data. Were you using any mods or special command line options? A log file would probably also help.
Title: Re: Bindless Texturing test builds
Post by: tomimaki on October 16, 2017, 12:18:24 pm
No mods and I tried without commandline flags but still the same.

[attachment stolen by Russian hackers]
Title: Re: Bindless Texturing test builds
Post by: tomimaki on April 02, 2018, 03:42:52 pm
So I got bindless-enabled hardware and could test this build.
But it crash on both gpus (intel and nvidia) when I load some model in Tech Room or F3 Lab.

[attachment stolen by Russian hackers]
Title: Re: Bindless Texturing test builds
Post by: m!m on April 02, 2018, 04:48:02 pm
Looks like I committed some debug code to the test build by accident. I'll update the changes to the latest master revision and will let you know when that is done. Unfortunately, driver support for bindless texturing is still a bit buggy so these changes may not be ready for the real world yet.
Title: Re: Bindless Texturing test builds
Post by: m!m on April 03, 2018, 06:43:05 am
These builds should fix the shader compilation issue: http://swc.fs2downloads.com/builds/test/bindlessTextures/
Title: Re: Bindless Texturing test builds
Post by: Phantom Hoover on April 03, 2018, 01:22:30 pm
Bindless texturing? So you'll be removing binds from the engine? When do you think you'll be able to release this bind culling?
Title: Re: Bindless Texturing test builds
Post by: m!m on April 04, 2018, 02:56:44 am
This just affect model textures since that is the most CPU intensive part of the rendering pipeline. Since I can't even test this code on my current machine since the drivers crash if I try to use bindless textures it will probably be some time until I can open a pull request for this.
Title: Re: Bindless Texturing test builds
Post by: tomimaki on April 05, 2018, 08:30:47 am
No more crash on nvidia.
Title: Re: Bindless Texturing test builds
Post by: m!m on April 05, 2018, 10:21:52 am
That's great! Thanks for testing.
Title: Re: Bindless Texturing test builds
Post by: tomimaki on April 06, 2018, 10:50:10 am
That's weird since the changes do not change how the briefing window is drawn but some of the other changes may have broken that. Just to confirm, are you using the newest nightly build as the "normal" build?
Interesting thing. New build fixed issue with briefing window on unsupported hardware. ;)
Title: Re: Bindless Texturing test builds
Post by: m!m on April 06, 2018, 12:00:53 pm
Maybe it was something unrelated to the bindless texturing then. I updated the changes to the newest source version so there may have been a fix for that issue.
Title: Re: Bindless Texturing test builds
Post by: tomimaki on April 06, 2018, 01:56:57 pm
I noticed some error on GTX 1050.
Code: [Select]
OpenGL Debug: Source:OpenGL Type:Error ID:1282 Severity:High Message:GL_INVALID_OPERATION error generated. Texture is already resident for this context.It shows multiple times in log.

[attachment stolen by Russian hackers]