Same way dedicated servers are headless.
I’ve tried using -nullRHI as a shortcut parameter, but it doesn’t work. Sure it looks headless, but the insane CPU is still there, so it doesn’t acctually solve the problem. It’s as if it just hid the program, but all the rendering does happen.
I imagine it would indeed need to be exported/packaged like servers are. But this is no server ofc, so how can this be done?
The program needs to graphics, no rendering at all, it should run in the background with little to no CPU usage, in the same way dedicated servers do. It’s a necessity for it to be packaged in a headless mode, else it just plain cannot work, cuz each program consumes roughly 20% of the CPU when it should consume less than 1%.
There is no documentation online about this.
edit: it also doesn’t need to be headless, it would do to simply package the program in a way that doesn’t include whatever is that it is including that cause it to use 20% of CPU. Like, it’s a black screen, there is nothing in the game. It makes no sense, and while packaging the project it shows stuff like “building niagara” which is… absolutely never used in the project. So any way to disable the engine packaging stuff like that would also be helpful, not THE solution, but a workaround. And I know it’s possible cuz dedicated servers do this, they consume no CPU… so there’s a way to package projects without all that stuff.
update: I managed to workaround it, idk how though. I toogled a lot of settings and then restarted the project, and something must’ve done the trick. Basically just disabled everything that seemed wouldn’t break the engine. That brought down CPU from 20% down to 2% but it’s still not good enough, should be at 0% when idle. And it’s only a workaround, but if this helps anyone here you go. The problem still remains though that it’s not as good as it being “headless”. and 2% vs less than 0.1% matters when you need hundreds running on a machine. Again though, this is just a workaround, it’s minimizing the problems not being able to package the project headless has. But help is still needed if someone knows how to do that.