Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
hobomaster22

Helion - C# (0.9.2.8 4/24 - Goodbye BSP tree rendering)

Recommended Posts

This has probably the most passive aggressive license I have ever seen. Is it even allowed to clone the repository? 

Share this post


Link to post
16 minutes ago, fabian said:

This has probably the most passive aggressive license I have ever seen. Is it even allowed to clone the repository? 

https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository

Github states that if a repo is public, according to its TOS people are allowed to view and clone, although they are discussing a "no license = all right reserved" scenario there. Not a lawyer(tm).

Share this post


Link to post
38 minutes ago, fabian said:

This has probably the most passive aggressive license I have ever seen. Is it even allowed to clone the repository? 

It’s obsolete. I should have checked. When I am back at my computer I will update it. Should just be gpl3.

Share this post


Link to post

A lot have work has been going into Helion for rendering. One thing we have always wanted to do is handle static rendering. Traversing the BSP tree is painfully slow on complicated maps. The way Doom works makes this pretty hard to unwind, but work is being done here. Helion can currently cache static geometry and use the BSP tree for rendering sprites and dynamic data. This means we can set distance cut offs for BSP traversal and still render *something*. So now trash PCs can reasonably render something like Planisphere 2... because why not.  Texture animations are handled. Skies are not rendering with this feature... yet.

 

Cheap Amazon special micro pc from 2019
Windows 10
Intel Celeron
Intel HD 500
4GB RAM

This PC is painful. It's slow just using the desktop. Hard drive access seems to be a huge bottleneck even though it has an SSD. Let's see what it can do anyway.

Rendering at 1920x1080


Planisphere 2 (2048 cutoff): 60 FPS
Planisphere 2 (4096 cutoff) 39 FPS
Sunlust MAP28 (2048 cutoff): 55 FPS
Dance on the Water MAP04 (2048 cutoff): 52 FPS
Eviternity MAP26 (2048 cutoff): 45 FPS

 

Spoiler

361472599_screenshot_HelionStatic_planisf2.png.607c901d50ad2e4639c2a11fc06ddae7.png

1368655086_screenshot_HelionStatic_sunlust2.png.286ee76728193878cc4e14dabb478bcf.png

846923720_screenshot_HelionStatic_dotw.png.951aef167eba122efeca6bf1c0d441d9.png

 

700442485_screenshot_HelionStatic_eviternity_3.png.a3432b628108185ba38bccf93ad90b8a.png

 

Budget laptop from 2014
Windows 8.1
AMD A6-5200
AMD Radeon HD  8400
4GB RAM

Compared to the previous pc this laptop is useable. Hard drive access isn't painful like the cheap Amazon micro pc.

 

Rendering at 1024x768
Planisphere 2 (2048 cutoff): 75 FPS
Planisphere 2 (4096 cutoff) 55 FPS
Sunlust MAP28 (2048 cutoff): 97 FPS
Dance on the Water MAP04 (2048 cutoff): 84 FPS
Eviternity MAP26 (2048 cutoff): 86 FPS

 

Spoiler

e9874dcd-7e7f-4510-8ce8-04ca8a7a4925.png.3e95d526fa4846334ee58805fc114adc.png

 

1fc375e8-5f85-4f4f-a6d7-b1f174ef1bde.png.7b7bb659fa3a7300032ea7dd9f4d317e.png

 

f8870b2d-4c5d-45c1-bcb5-fbeb55444646.png.ce40dc7a4ddabcefe63b33e009cc7823.png

 

17479387-4135-4955-bbb2-b9d5a58aaf1f.png.e6c7d1bad0be84102ba169d6d49d87a1.png

 

 

 

And now for something more modern (but still a laptop because why not. Even if it is a beast of a laptop.)


Windows 10
Ryzen 5900HS
RTX 3070
16 GB RAM

 

Here the numbers can get pretty absurd. Especially if a lot of the map is static.

Render at 1920x1080
Planisphere 2 (8192 cutoff): 671 FPS
Dance on the Water MAP04 (4096 cutoff): 1800 FPS
Sunlust MAP28 (4096 cutoff): 250 FPS
Eviternity MAP26 (4096 cutoff): 368 FPS

 

Spoiler

screenshot_Helion_planisf2.png.52019a8a63335cd2c161582aa914c633.png

 

screenshot_Helion_sunlust.png.5bb4b9cc9e777e42112b2cdbde66f5ed.png

 

screenshot_Helion_dotw.png.3a8aee276cf4f042daede083e0f190ef.png

 

screenshot_Helion_eviternity.png.4f1e2673bd71b4a8b2fffe5daa86e2a4.png

 

 

 

Share this post


Link to post

This is so cool!

 

Since we have already talked about mouse interpolation briefly in another topic, I have to point out that... It doesn't work properly in Helion (stutters while strafing and moving camera around). 😄 That said it's not needed at all, as mouse inputs translate 1:1 to what you can see on the screen. Perfection. And input lag wise seems like it even beats GZDoom.

 

One question though. Have you tested it on variable refresh rate monitors?

Edited by PKr

Share this post


Link to post
33 minutes ago, PKr said:

This is so cool!

 

Since we have already talked about mouse interpolation briefly in another topic, I have to point out that... It doesn't work properly in Helion (stutters while strafing and moving camera around). 😄 That said it's not needed at all, as mouse inputs translate 1:1 to what you can see on the screen. Perfection. And input lag wise seems like it even beats GZDoom.

 

One question though. Have you tested it on variable refresh rate monitors?


I appreciate the comment :). I did put a lot of effort to pull the raw mouse input from Windows as OpenTK unfortunately doesn't support it. As for mouse interpolation, there is an option for it (mouse.interpolate 1) which should make it feel more prboom/dsda-doom.
 

As for variable refresh rate, I haven't really played with it. I have a display that supports G-SYNC but admittedly I don't have a lot of knowledge about it. Helion supports adaptive v-sync as well. I think it was packaged with it vsync on, but not set to adaptive. I'm thinking adaptive should probably be the default (render.vsync 2).

Share this post


Link to post
19 minutes ago, hobomaster22 said:

As for variable refresh rate, I haven't really played with it. I have a display that supports G-SYNC but admittedly I don't have a lot of knowledge about it. Helion supports adaptive v-sync as well. I think it was packaged with it vsync on, but not set to adaptive. I'm thinking adaptive should probably be the default (render.vsync 2).

Oh I see. Well I asked because if you haven't tested it a lot, then in case if somebody will complain about the game stuttering in g-sync mode in the future suggest them to set render.forcepipelineflush to True and under no circumstances to use custom frame rate limits (either the Helion's in-game framerate limiter or driver one/etc) while low latency mode is set to on or ultra... For some reason it causes insane frametime spikes.

 

Both low latency mode and in-game framerate limiter seem to be working perfectly fine separately though - so it's ok to use either option.

 

P.S. In fact, no, after a little bit more testing it seems like low latency mode set to on provides better (perfect) results while in g-sync mode. Using custom framerate limits still can cause some frametime spikes (not as extreme as fps cap + low latency though).

Edited by PKr

Share this post


Link to post

Here is a video demonstrating what we are working on. This is very new and I am just scratching the surface with this one.


What this does is stops traversing the BSP at the configured distance. Dynamic sections (changing lights, sector movement, and scrolling textures) will not be rendered. However, static geometry will still be rendered even past the cut off.

Focus on the large scrolling mountain, torches, any flashing lights and watch them phase in and out as they come into distance.

 

Share this post


Link to post

Is it possible to invert the mouse Y axis?  Did some googling and checked the ini file but nothing leaped out at me.

 

Thanks!

Share this post


Link to post
8 minutes ago, DrR0Ck said:

Is it possible to invert the mouse Y axis?  Did some googling and checked the ini file but did not have any luck. 

 

Thanks! 


Hi! You can set the yaw and pitch values to a negative number. Setting mouse.pitch to -1 should invert the Y.

Share this post


Link to post

I am assuming just based off what I'm reading and seeing here you're aiming for vanilla compatibility? If that's the case, I can run this through some WADs that I know push the scopes of vanilla boundaries and report back what I experience. This is some pretty excellent stuff on display here!

Share this post


Link to post
1 hour ago, Athel said:

I am assuming just based off what I'm reading and seeing here you're aiming for vanilla compatibility? If that's the case, I can run this through some WADs that I know push the scopes of vanilla boundaries and report back what I experience. This is some pretty excellent stuff on display here!


I would like to support as much as reasonably possible, which is kind of hard to define. I thought I understood Doom really well until I developed this. It was quite a humbling experience, especially when I got to dehacked. I would definitely like to know what works and what doesn't for sure.

Share this post


Link to post
On 10/30/2022 at 6:32 AM, hobomaster22 said:

Hello everyone,

 

Helion is a new port developed in C# using .NET Core by WChrisK and myself. The main objectives of Helion are to have readable code along with good performance. Usually these are counter-intuitive but we put a good amount of effort to hit these goals. It's my hope that those interested in the source find it easy to understand and can learn how games like Doom work. Helion is different from most ports in that started entirely from scratch and isn't based off any existing code base. Some very specific code sections were basically translated line by line such as enemy action functions to match the original game. The base of Helion uses ZDoom specifications like decorate, mapinfo, gameinfo, and ZDoom action specials etc. We weren't looking to re-invent the wheel with new formats.

 

Helion supports decorate/ZDoom specials. However, it is partial and implemented up to a point to support Vanilla, Boom, and MBF21. If a wad includes both dehacked and decorate, the dehacked will be used by default as it's currently more stable. Does not support different viewport sizes in fullscreen. Only supports fullscreen at the native resolution. This means the full sized hud is not technically correct as it does not change the viewport size.

Screenshots:

  Hide contents

Note: hud.showfps and hud.showstats set to 1

 

Doom 2 MAP01:

screenshot_Helion_DOOM2_MAP01.png.eaf6a0f2afd96117a1428d0f85d13c88.png

 

 

Doom E1M1:

screenshot_Helion_e1m1.png.b11f7827f2899f4fba3a2a1147470c01.png

 

Eviternity MAP29:

screenshot_Helion_eviternity_map29.png.b5800e82ad4dabcf6dd846a751f3c69e.png

 

Fractured Worlds MAP05:

screenshot_Helion_fracturedworlds_map05.png.20b9435027083643f0c9e74950092101.png

 



Testing Tech:

  Hide contents

Helion has full testing capabilities where every vanilla action special is tested for expected behavior. This was accomplished by creating a world simulation without rendering and manually ticking the simulation and asserting expected values (like sector height values etc). Code for these tests can be seen here:
https://github.com/Helion-Engine/Helion/blob/master/Tests/Unit/GameAction/Vanilla/VanillaActions.cs
Examples for Vanilla boss behavior tests. This tests behavior where sectors tagged 666 lower when barons die, or the level exits when the cyberdemon dies in E2M8.
https://github.com/Helion-Engine/Helion/blob/master/Tests/Unit/GameAction/Boss.cs

 

Brain dump of more technical features:

  Hide contents

Brain dump of more technical features:
Console with searching and auto-complete features.
    Page Up/Page Down to scroll.
    'Commands' to view all commands.
    'Search [text]' to view all commands containing the search text.
    Press tab once will display all matching commands.
    Press tab on a completed command will display the documentation for the command.
    Double pressing tab will auto-complete.
OpenGL 3.3:
    Vsync support.
    Decoupled rendering with interpolation.
    Alpha/transparency support.
    Examples of rendering console commands: (render.vsync, render.maxfps).
HUD support:
    Minimal hud.
    Crosshair that changes red when targeting.
    Full hud background can be changed with hud.backgroundtexture console command. Can be any texture/flat/patch/image.
    Hud scaling using hud.scale console command.
Mouse look support.
    mouse.look 0 in console to disable.
    game.autoaim 0 to disable autoaim.
Automap:
    Zoom in and out with +/- keys.
    Look around with arrow keys.
    mark.add console command to add a flashing map marker.
    Lines requiring keys are colore matched.
    Teleport lines are colored green.
Screenshots with print screen key.
Midi/mus playback using Fluidsynth.
    Default sound font can be changed in the SoundFonts folder.
Supports 3D physics with 3D bridge things and things walking on other things.
    Can be disabled with console command compatibility.infinitelytallthings.
Vanilla light dropoff emulation.
Uses the vanilla random table.
Widescreen asset support.
Uses ZDoom as a base. Currently only supports enough ZDoom features for Vanilla/Boom functions.
Supports wad, pk3, zip, and direct folders.
Supports nearly all Boom features.
    Wads such as Eviternity and Fractured Worlds are fully functional.
    Does not support light level changes as door opens/closes.
    Does not support bumping off walls when sliding on ice floors.
    Does not support colored sectors.
    Does not support all intricies of friendly monsters from MBF.
Supports MBF21.
Dehacked, BEX, and DEH extra.
Decorate (not fully functional).
Statistics.
    Show statistics on hud with hud.showstats
    Output after level completion with -levelstat (same output format as Boom).
Save/Load menu.
    Automatically writes level with name.
    Only shows results for the current wad(s).
Demos.
    Uses -record/-play parameters like original.
Uses zdbsp (painfully) translated into C#.
   https://github.com/nstlaurent/zdbspSharp

 

The future

  Hide contents

Work on Helion has slowed down a lot. Helion was originally started in 2019 and things in our lives have changed a lot over the years, ultimately shifting our priorities. Helion had a lot of feature goals that we wanted that became unrealistic as our available free time dwindled. We decided three years later it needs to be released. While Helion isn't exactly what we originally set out for, it is a fully functional game.

 

tldr
Supports Doom shareware, the Ultimate Doom, Doom II, TNT, Plutonia, and Chex Quest IWADS (IWAD can be dropped in main folder, but there is no selection UI)
Supports usual parameters such as -iwad, -file, -skill, -wap, +map
Supports Vanilla, Boom*, MBF21. dehacked, bex, dehextra
Currently Windows only - Windows 7 minimum
.NET 6 runtime. Should prompt if not already installed. Direct links just in case:

https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-6.0.10-windows-x64-installer?cid=getdotnetcore
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-6.0.10-windows-x64-installer
OpenGL 3.3 required
Config.ini / console for configuration
mouse.look 0 and game.autoaim 1 for classic configuration

hud.showstats 1 for hud stats

 

*Download here:
https://github.com/Helion-Engine/Helion/releases/latest

 

*Source:
https://github.com/Helion-Engine/Helion

 

Credits:
We tried to credit specific ports and people/teams as much as possible in code.

Obviously id software, as we referenced the original source.
Randi Heit and the ZDoom team for zdbsp and the ZDoom format specifications.
Lee Killough and the Boom team. MBF was referenced for constants and functionality to match Boom special functionality.

@Redneckerzand @Doomkid for play testing.

 

How well does it work with nuts.wad?  :D

Share this post


Link to post
40 minutes ago, Master O said:

 

How well does it work with nuts.wad?  :D

 Depends on your CPU, you would have to give a try. On the original nuts.wad I can currently stay around 60fps when the initial onslaught begins.

Share this post


Link to post

This port feels so good, man. Just tried the build from ~3 weeks ago (finally) and am really loving the feel. I know this is a random detail to latch onto and it's acknowledged in the OP, but I'm eager for viewport size to be more adjustable than it is currently, but I think you explained to me on Discord a while back that it would be a bit painful.

 

Keep it up man, more people need to try this thing out! This is kinda an empty post but damn, I just had to give some more acknowledgement.

Share this post


Link to post
16 minutes ago, Doomkid said:

This port feels so good, man. Just tried the build from ~3 weeks ago (finally) and am really loving the feel. I know this is a random detail to latch onto and it's acknowledged in the OP, but I'm eager for viewport size to be more adjustable than it is currently, but I think you explained to me on Discord a while back that it would be a bit painful.

 

Keep it up man, more people need to try this thing out! This is kinda an empty post but damn, I just had to give some more acknowledgement.

It's definitely on the list. We just got really excited about the new rendering developments, which is where our focus is now. Even some of those most garbage integrated integrated Intel graphics cards can render Planisphere at a somewhat playable FPS. So maps that normally crush existing ports will run on most people's machines in excess of 100fps now, if not over 1k fps... And on this topic, I would like to know what Vanilla/Boom maps that people love to play but run slow on their current machines so we have more to test against with our big rendering upgrade.

Share this post


Link to post
59 minutes ago, hobomaster22 said:

It's definitely on the list. We just got really excited about the new rendering developments, which is where our focus is now. Even some of those most garbage integrated integrated Intel graphics cards can render Planisphere at a somewhat playable FPS. So maps that normally crush existing ports will run on most people's machines in excess of 100fps now, if not over 1k fps... And on this topic, I would like to know what Vanilla/Boom maps that people love to play but run slow on their current machines so we have more to test against with our big rendering upgrade.

Knee Deep in KDIZD ofcourse.

Share this post


Link to post

I tried this the other day on Sunder Map15 as a bit of a stress test, and was slightly surprised to see it ran significantly worse than GZDoom 4.9.0 - 45fps for Helion versus 115fps for GZDoom.

 

The impression I got from the OP was that Helion should be quicker than GZDoom, so I'm trying to understand what might be causing the slow-down.  One thought I had - is Helion a software rendering engine?  It could be the GPU is doing the heavy lifting for GZDoom.

Share this post


Link to post
6 minutes ago, Bauul said:

I tried this the other day on Sunder Map15 as a bit of a stress test, and was slightly surprised to see it ran significantly worse than GZDoom 4.9.0 - 45fps for Helion versus 115fps for GZDoom.

 

The impression I got from the OP was that Helion should be quicker than GZDoom, so I'm trying to understand what might be causing the slow-down.  One thought I had - is Helion a software rendering engine?  It could be the GPU is doing the heavy lifting for GZDoom.

We are not using software rendering. I can be more clear with the OP but we did put a lot of effort in getting good performance, but I didn't say it would beat any port, or compare it to any. It's hard to develop something from scratch in a managed language and compare yourself to ports that have had decades of performance tuning written in C/C++. This initial release is using BSP traversal like everyone else, and we aren't using frustum occlusion either which is probably the biggest performance gap on a gigantic map like that. We didn't originally intend on having our initial release using BSP traversal, but life gets in the way and it's stable. I have found some more time and working hard to try to get this new version out for people to test. With this rendering upgrade, at least on my machine with a mobile RTX 3070 Sunder Map15 gets above 700fps. The videos I posted above demonstrate some of the things we are working on, and it has become a lot faster from even that.

Share this post


Link to post
On 11/17/2022 at 12:38 PM, Master O said:

 

How well does it work with nuts.wad?  :D

tested it myself with nuts3- port still chugs but still produces enough frames to be playable on a 6 core

Share this post


Link to post
7 hours ago, jeremieh said:

tested it myself with nuts3- port still chugs but still produces enough frames to be playable on a 6 core 


This is mostly going to be determined by single core performance. Nuts3 is an absolutely brutal performance test. Rendering large thing/monster counts is a huge bottleneck right now. It's impressive your CPU was fast enough to be playable. I'm hoping to get this next release out by next week that will increase rendering performance dramatically.

Share this post


Link to post
Quote

 


Planisphere 2 (8192 cutoff): 671 FPS
Dance on the Water MAP04 (4096 cutoff): 1800 FPS
Sunlust MAP28 (4096 cutoff): 250 FPS
Eviternity MAP26 (4096 cutoff): 368 FPS
 

 

 

How do you change the cutoff? I searched commands, but I couldn't find anything with a similar name.

 

edit: actually the first map I tested was Sunder map 15 and like others before, I had a similar performance to GZDoom... but I see your reply above. Good luck!

Share this post


Link to post
19 minutes ago, Turin Turambar said:

 

How do you change the cutoff? I searched commands, but I couldn't find anything with a similar name.

 

edit: actually the first map I tested was Sunder map 15 and like others before, I had a similar performance to GZDoom... but I see your reply above. Good luck!

These posts are what we are working on for the next release. For most machines this next release will make the current version look like a joke in terms of performance. We are just doing final testing and cleanup and it should be available in the next few days. 

Share this post


Link to post

Looks like I will be releasing this sooner than expected. Here is Sunder MAP15. The funny thing is recording with OBS studio actually drops the frame rate about 200FPS, but the frame rate is so absurdly high it doesn't matter. Wrapping up some final testing and it should be available to test today.

 

 

Share this post


Link to post

Goodbye BSP tree rendering. This release has what we always wanted. Static mode is enabled by default, and here are the options to play with:
render.staticmode - Enabled by default. Only uploads map geometry to the GPU when changed.
render.blockmap - Enabled by default. Uses the blockmap for rendering sprites and dynamic sectors. When disabled it will use the BSP tree.
render.maxdistance - 6000 by default. Stops rendering sprites and dynamic sectors past this distance. Tweak this value to gain more performance or render sprites in the distance to your liking.
render.staticlights - Enabled by default. This uploads light changes on the fly to the GPU. Some old integrated cards might hate this for maps that abuse light changes (*cough* Dance on the Water MAP01)

 

So, what is the catch with static rendering? For one, the automap currently can't work the same way. Because Doom marked the lines you saw by using the BSP traversal in the redering, this won't work without BSP tree traversal. For now with static mode you get the entire map in the automap view. Second, anything that changes how a sky would render isn't handled. These cases are kind of rare and it's not a trivial thing to solve right now, but it's on the list. There are also likely to be a few rendering glitches either way. Trying to render Doom maps riddled with software abuse hacks in a hardware world is complicated.

 

For the majority of PCs this rendering change multiplies the rendering performance significantly. A budget laptop from 2014 running an AMD Radeon HD 8400 can play a map like Eviternity MAP26 and stay above 100fps almost the entire time. I actually forgot I was playing a piece of garbage laptop with Windows 8.1 (gross). Potato PCs can are able play Planisphere 2 even with the render.maxdistance value defaulted to 6000.

 

Download here:
https://github.com/Helion-Engine/Helion/releases/tag/0.9.1.0

 

Sprite rendering and world simulation with tons of monsters is still a bottleneck. So extreme maps like nuts and nuts3 depending on your CPU could be an issue.

PS @Bauul this is probably what you are looking for :)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×