Hacknet

Hacknet

View Stats:
RogueKeeper Apr 30, 2018 @ 2:14pm
Why the hell does this game uses OpenGL for rendering?
First of all, I have the game on GOG. I made sure to use the dedicated GPU of my laptop (AMD Radeon R7 M265) and it runs at 20 FPS max. If I change back to the integrated Intel GPU, it reaches 60 fps, but there are times where the framerate goes crazy.
Of course, if I alt+tab and look into Discord or anything else, everything goes reaaally slow because the Intel GPU is working like mad.

I see there are two Direct3D libraries, d3dcompiler_43.dll & d3dcompiler_47.dll. Is there any way to use them to set the render backend to DirectX? I've also checked out that "XNA branch" on GOG, but the password doesn't work...
< >
Showing 1-8 of 8 comments
Azure Zero Apr 30, 2018 @ 2:56pm 
Direct X was used for the VERY early versions.

OpenGL and DirectX are different enough in matrix stuff that it won't switch nicely.

If you having issues update the graphics driver for both the discrete and intergrated GPU.
Last edited by Azure Zero; Apr 30, 2018 @ 2:58pm
RogueKeeper Apr 30, 2018 @ 3:28pm 
Originally posted by Azure Zero:
Direct X was used for the VERY early versions.

OpenGL and DirectX are different enough in matrix stuff that it won't switch nicely.

If you having issues update the graphics driver for both the discrete and intergrated GPU.

I already updated the AMD GPU months ago, it's most likely due to not working well with OpenGL. Oh well... it works fine with the Intel GPU if I don't exit to the desktop and all that.

Besides, OpenGL support for AMD is apparently ♥♥♥♥♥♥♥♥. We really need an universal API asap.
Last edited by RogueKeeper; Apr 30, 2018 @ 3:41pm
thePalindrome May 1, 2018 @ 6:02pm 
That's OpenGL, DirectX is the really garbage one ;p
Azure Zero May 1, 2018 @ 7:59pm 
Originally posted by thePalindrome:
That's OpenGL, DirectX is the really garbage one ;p

Agreed, I programmed for both in school and OpenGL was WAY better in getting started and working with, not to mention it is Multi-platform, where as DirectX is Windows only.

Though an Open Source version of DirectX, called ReactX is found in React OS[www.reactos.org]
but the OS is currently in alpha.....
Last edited by Azure Zero; May 1, 2018 @ 8:02pm
thePalindrome May 1, 2018 @ 8:47pm 
open versions of directx can be found in wine, although d3d10+ can be a bit lacking in support (enough for some games, but not for others)

All in all, OpenGL *is* the correct answer, I rather doubt that amd is lacking opengl support ;p
RogueKeeper May 2, 2018 @ 4:06am 
Originally posted by thePalindrome:
open versions of directx can be found in wine, although d3d10+ can be a bit lacking in support (enough for some games, but not for others)

All in all, OpenGL *is* the correct answer, I rather doubt that amd is lacking opengl support ;p

It's not lacking OpenGL support, but that support is garbage. Just make a quick search and see what people have to say about it; doesn't look pretty. Besides, it might be easier to work with, but that doesn't mean it's good. I mean, I got curious on how different was Vulkan in comparison, and saw a graphic that stated OpenGL only uses the next CPU core until the first one is completly filled. I understand that Linux users only have OpenGL, but it feels like an unoptimal renderer for everyone else.

Anyway, I beat the main campaign with the integrated card. TracerKill exploit makes the framerate go crazy, but overall I had acceptable performance. Loved the final mission, and already loving Labyrinths so far.
Last edited by RogueKeeper; May 2, 2018 @ 4:07am
Azure Zero May 2, 2018 @ 6:32am 
Originally posted by Seta:
Originally posted by thePalindrome:
open versions of directx can be found in wine, although d3d10+ can be a bit lacking in support (enough for some games, but not for others)

All in all, OpenGL *is* the correct answer, I rather doubt that amd is lacking opengl support ;p

It's not lacking OpenGL support, but that support is garbage. Just make a quick search and see what people have to say about it; doesn't look pretty. Besides, it might be easier to work with, but that doesn't mean it's good. I mean, I got curious on how different was Vulkan in comparison, and saw a graphic that stated OpenGL only uses the next CPU core until the first one is completly filled. I understand that Linux users only have OpenGL, but it feels like an unoptimal renderer for everyone else.

Anyway, I beat the main campaign with the integrated card. TracerKill exploit makes the framerate go crazy, but overall I had acceptable performance. Loved the final mission, and already loving Labyrinths so far.

Not quite right on OpenGL being CPU based

OpenGL 1.0 to 2.1 used the a lot CPU for processing, but OpenGL 3.0 and Up uses more of the GPU due to the programmable pipeline which is where shaders do their work.
thePalindrome May 3, 2018 @ 7:11pm 
depending on the driver, you might get better performance out of openGL than d3d. Part of the problem is that the amd windows drivers can be hit or miss, and on osx OpenGL support is hell (check the dev log from The Talos Principle on their "adventures").

Vulkan is a lower-level graphical API made mainly by amd that makes everything a lot faster if you do it right, but can be slower if the pipeline is set up wrong.

If the rendering is being done on the cpu, that means something has gone horribly wrong, *or* it's possible the integrated card is actually just straight up cpu rendering (possible with Intel cards, they have a reputation for not being the best)

all in all, sounds like you've gotten things to work out, although I should point out that hacknet *is* C# (formerly XNA, but got moved to FNA)
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Apr 30, 2018 @ 2:14pm
Posts: 8