ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Announcements and Showcase
forum topic indicator CopperCube using DX11
person icon
guest_Robbo
Guest
Quote
2026-09-25 08:11:27

Amongst improving CC for DX9 I thought to have a go at running it with DX11 as many of the files are published on the Irrlicht web page from years ago.

I had to spend some money on this one to get it to work with help from Claude AI and yes, it compiles and runs now. I will have to spend the next few weeks fixing up bugs and things that dont work the same or at all from previous DX9 method as they are quite different and uses whats called a wrapper that can load and run anything made in CC DX9 but with DX11.

This method only supports DX11, no openGL or any other drivers to keep it clean.

Good thing with DX11 is that it can make use of multi threading, no limits on dynamic lights, better instancing, softer shadows, order-independant transparency, better materials, shader model 5.0 (not 3.0), better SSAO, better Screen-Space Reflections (SSR) and Global Illumination as well as Tessellation and Displacement Mapping etc..

Certainly some benefits - will be interesting to see the difference after a month or so...

person icon
rolevix
Registered User
Quote
2026-09-25 10:54:14

Wow, I’d love to see and try something like that!

person icon
Monks
Guest
Quote
2026-09-25 15:28:26

I got great respect for you Robbo, can't wait to see what you come up with, Cheers!

person icon
port
Guest
Quote
2026-09-25 16:17:44

well at least coppercube's normal version doesn't use ai slop code

person icon
guest_Alireza
Guest
Quote
2026-09-25 21:01:19

That’s excellent, dear Robo. This could be a major revolution for the engine.
I also made some attempts to switch from DX9 to DX11.
I made some progress; textures, lighting, and features like anti-aliasing and standard CopperCube shaders—such as fake reflections—worked well.
However, dynamic shadows and water shaders weren't implemented properly and didn't work.
And most importantly, I experienced a severe drop in frame rate.
Using the same project and scene, the frame rate was around 250 in DX9, but with DX11, it dropped to roughly 120. So, I got discouraged.
If you think my work might be helpful, I can send you the source files.

person icon
redberylftw
Registered User
Quote
2026-09-25 23:00:57

Since it's wrapping it'll probably be useful for layering some of the programmable pipeline on top. But Alireza brought up a real point to consider; There are a lot of ways here where the tradeoff for newer pipeline might mean worse performance. Even with Claude to help it'll take quite some time to optimize away all of the quirks because you've got to go through the quirk hunting process.

person icon
guest_Robbo
Guest
Quote
2026-09-26 05:48:12

Thanks for the comments guys, the first time I ran it, it looked exactly like DX9 so much so that I had to run a driver lookup API I had already made to confirm it was in fact DX11, and it was.

I have heard DX11 is generally not as performant as DX9 yet has a lot of better functionality so I expect it would still be worth it. So far on my test scene demo with large terrain from heightmap the framerate is identical to DX9 so thats encouraging. So far checked lighting, plants swaying and everything looks same as DX9.

if you want to share any of your code 'guest_Alireza' - I can see if it could be added into the project and might speed things up a bit, certain would not hurt and probably help out quite a bit also.
You would of course get free use of anything I do with my version also.

Im just now trying to add multi threading to speed up load times, or at the very least speed up shader compile times which is slower for now compared to the DX9 version. There is no fixed function pipeline in DX11 so its all shaders from here on in.
All previous fixed functions have to be switched to use its own shader instead and is compiled at the very start.
Yes, I havent yet started on shadows as Im just getting everything else to work like DX9 first before doing that.

I got most files from others who have successfully added DX11 into Irrlicht based on DX9 so will give appropriate credits to those guys in the credits section.

This version also has the possibility for Vulcan rendering as the driver files are there also but Vulcan is definately a lot slower than DX11 so I just gonna do DX11 for now...

person icon
guest_Robbo
Guest
Quote
2026-09-27 02:26:12

I like give major updates along the way in this project as I personally find it interesting on big wins:

SPEED GAIN ON LOAD - 70x
I had a large 9-10 second delay on startup which found had to do with compiling all the fixed function and other default DX9 shaders into DX11
I got it to pre-compile all this into byetcode and store it locally if it cant find it so any new load after this will just access the pre-compiled shaders with almost no time delay.

Total delay went from th original 10 seconds to 150ms or over 70x faster and its working now.

person icon
gazzauk
Registered User
Quote
2026-09-27 03:50:43

So the runtime engine is now using DX11 as the renderer but the editor is still using DX9 for the rendering. Is this for real DX11 or is it a wrapper around DX9 ?

What are the improvments we can get from this ?

person icon
guest_Robbo
Guest
Quote
2026-09-27 04:20:17

Yes, its for real DX11 for CopperCube saved DX9 files. The wrapper just adjusts the saved Editor info into the new format of DX11 so it can be run using that instead.

Right now Im about to test out runtime loading large textures wirthout affecting framerate via multi threading..

person icon
Razier
Guest
Quote
2026-09-27 04:34:02

Robbo these improvement in render system, in the case directx11 is very interesting specially to use advanced post processing effects with compute shaders, But I am curious how you will overlap the coppercube editor limitations like for slots for texture, this limitation from coppercube is horrible specially the directx9 can use at sixteen slots for textures, the api that don t explain or show some internal comands and functions is horrible too, I would like to access things like render pass, or normal and depth buffers, but I didn t find nothing in official api from coppercube. can you create some video showing some changes or results from your directx11 coppercube version?

person icon
guest_Robbo
Guest
Quote
2026-09-27 13:58:45

Maybe later Razier I can look into the idea of exporting depth buffer and other things like that out of the DX11 version but its not normally done that way. It would make it more easy to anyone wanting to create their own advanced shaders though...I will keep that idea for later.

person icon
guest_Robbo
Guest
Quote
2026-09-27 14:04:06

New major update:

MULTI THREADING TEXTURE LOAD
I just got working multi threading to load textures async - ie at the same time on another thread without affect framerate like it normally will if over around 2k in size.

2 methods available:

ccbLoadTexture (for hidden nodes/on load/before first draw)
ccbReplaceTexture (load and replace existing during runtime)

The 2nd method can stream in textures if you want while playing and not see any framerate stutter, I just tested it and its working.

person icon
guest_Alireza
Guest
Quote
2026-09-27 20:25:34

That’s excellent, Robo. We’re gradually getting closer to the ability to create vast worlds through the dynamic loading of textures and 3D models. Is it also possible to load 3D models or prefabs asynchronously?
Or is that something unrelated to DX?

person icon
guest_Robbo
Guest
Quote
2026-09-28 03:19:46

Its possible but it seems but more difficult than for textures. Loading textures usually takes the most time.

I could put the loading of meshes as a definite possiblilty for later but you could also load the mesh with a very small texture on start and hide it and then just async replace the texture when your ready to use it and make it visible, that will also work fine for most things. Is there a situation where this method is not good enough ?


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |