-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Headless mode #564
Comments
In the meantime you could prevent the window from showing up via https://github.com/Kode/Kinc/blob/master/Sources/kinc/window.h#L39. |
Very nice, thanks @luboslenco! |
Unfortunately, this doesn't actually work for my use case, for a few reasons:
uint32_t formatCount;
err = fpGetPhysicalDeviceSurfaceFormatsKHR(gpu, surface, &formatCount, nullptr);
assert(!err);
(Buildable dockerfile for vulkan failures, run from sample repository root). Note that it's possible in general to have applications/deployments that aren't subject to these issues - UnrealEngine, for example, is able to run in a container (although it only got the ability to run vulkan headless recently - 4.25.2 or so, about a couple of months ago) |
Note that I haven't been able to get things to run on a headless server (yet). I'm keeping looking, but I'm not too confident. |
@Clockwork-Muse @5Mixer Were you able to get this to work? If so, could you please write what you did that eventually enabled you render things in the background using Kha? @luboslenco How did you prevent the window from showing up? I'm not sure what I need to change in line 39 of @RobDangerous Would you be able give us some points on how one can do rendering in the background using Kha? Really appreciate it |
Is your feature request related to a problem? Please describe.
Cannot render sprite atlases with GPU acceleration.
Describe the solution you'd like
An API or target that allows typical GPU rendering to framebuffers, without requiring an open window.
Describe alternatives you've considered
CPU rendering is currently possible with pure haxe, however is slow. Exporting to HTML5 (from Kha) and using a headless browser might work but has significant overhead.
The text was updated successfully, but these errors were encountered: