The MASM Forum

Projects => Game Development => Topic started by: aw27 on May 25, 2018, 11:49:29 PM

Title: 64-bit DirectX 11
Post by: aw27 on May 25, 2018, 11:49:29 PM
I attach a 64-bit DirectX 11 demo with source.
It includes a 64-bit DirectX 11 library (probably the MASM first). It was inspired by Siekmanski excellent work for DirectX 9, 32-bit.
It includes also my DMath library in static form (which I had never published before this way). As we know it is not possible to use DirectXMath within MASM, so DMath is the best bet because it covers the whole DirectXMath and is completely compatible.

This is not a complete work, but I can't promise I will pursue it.
The demo is of middle level difficulty and is based on lesson 11 of https://www.braynzarsoft.net/viewtutorial/q16390-braynzar-soft-directx-11-tutorials

Title: Re: 64-bit DirectX 11
Post by: LordAdef on May 26, 2018, 03:48:30 AM
Hi AW, nice!
Concerning your DMath lib, what do you use for 32 bits?
Title: Re: 64-bit DirectX 11
Post by: LiaoMi on May 26, 2018, 04:21:15 AM
Hi AW,

is it some kind of special library - d3dx11_43.dll? I usually dont have any problems with directx  :icon_eek: Thats interesting https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/8b78bea7-06c0-4a2c-8aa0-929c37fbfee4/missing-d3dx1143dll?forum=vclanguage (https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/8b78bea7-06c0-4a2c-8aa0-929c37fbfee4/missing-d3dx1143dll?forum=vclanguage)

I have an error
---------------------------
dx11_64App.exe - System Error
---------------------------
The code execution cannot proceed because d3dx11_43.dll was not found. Reinstalling the program may fix this problem.
---------------------------
OK   
---------------------------

Title: Re: 64-bit DirectX 11
Post by: Siekmanski on May 26, 2018, 04:21:39 AM
Cool  8)
Title: Re: 64-bit DirectX 11
Post by: nidud on May 26, 2018, 04:29:11 AM
deleted
Title: Re: 64-bit DirectX 11
Post by: felipe on May 26, 2018, 05:20:28 AM
 :greenclp:
Title: Re: 64-bit DirectX 11
Post by: daydreamer on May 26, 2018, 06:19:35 AM
fails on my 64bit
Title: Re: 64-bit DirectX 11
Post by: avcaballero on May 26, 2018, 06:41:44 AM
Quite nice, thank you. There is a noticeable difference in speed as the size of the window increases.
Title: Re: 64-bit DirectX 11
Post by: aw27 on May 26, 2018, 05:08:25 PM
@LordAdef
I will publish the 32-bit DMath static lib when I post a 32-bit demo. It may not take long.

@LiaoMi
You need the DirectX11 runtime installed.

@daydreamer
I don't know if it applies to the case, but dx11 requires Windows Vista or above.

@caballero
This may have to do with the texture fill-rate.



Title: Re: 64-bit DirectX 11
Post by: LiaoMi on May 26, 2018, 09:35:14 PM
Hi AW,

thank you! It works now, reminded me of flying barrels in the game Half-Life  :biggrin: Very dynamic scene! Cool!
(http://ksassets.timeincuk.net/wp/uploads/sites/54/2017/05/half-life-1.jpg)

The processor loads 21%, gpu load 81% Is this normal? Сan be compared with FarCry 5  :P
Title: Re: 64-bit DirectX 11
Post by: aw27 on May 26, 2018, 11:39:13 PM
Hi LiaoMi,
The demo is running at full throttle, no fps limitations. I hope not to fry people's graphics card. :redface:
Title: Re: 64-bit DirectX 11
Post by: felipe on May 27, 2018, 08:55:35 AM
Quote from: AW on May 26, 2018, 11:39:13 PM
I hope not to fry people's graphics card. :redface:

Don't think so, i will not watch the rotating cubes all day and night... :bgrin: