1
0
Fork 0
hscloud/hswaw/signage
informatic a7dbf25588 hswaw/signage: reuse compiled shader, better error handling
Shader will now only be recompiled whenever its code changes. This helps
with hangs on node transitions on underpowered devices.

If shader reload failed an error message will now be rendered over an
existing shader.

File load errors are properly handled.

Change-Id: I97a75b85620614252040b76e4f3aaa0ea1f0a7e3
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1337
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-07-11 08:35:12 +00:00
..
core signage: bring in from external repo 2022-07-07 23:09:07 +00:00
fonts signage: bring in from external repo 2022-07-07 23:09:07 +00:00
nodes hswaw/signage: reuse compiled shader, better error handling 2022-07-11 08:35:12 +00:00
vendor signage: bring in from external repo 2022-07-07 23:09:07 +00:00
README hswaw/signage: add development tip 2022-07-11 08:35:12 +00:00
config.lua signage: bring in from external repo 2022-07-07 23:09:07 +00:00
default.nix hswaw/signage: add development tip 2022-07-11 08:35:12 +00:00
main.lua signage: bring in from external repo 2022-07-07 23:09:07 +00:00

README

love2d signage
===

As used in digital signage displays in HSWAW.

Originally hosted on code.hackerspace.pl/informatic/love2d-signage, now in hscloud.


Building & Running
---

Run the following in hscloud root:

    $ nix-build -A hswaw.signage.prod
    $ result/bin/signage

If the result doesn't run and complains about OpenGL not being available, try building the 'local' target instead, which will use your host `<nixpkgs>`:

    $ nix-build -A hswaw.signage.local

For non-NixOS systems you'll need something like `nixgl` to work around Nixpkgs-GL-on-Non-NixOS badness anyways.

In order to run the app in more of a development environment with hot code reload and such use:

    $ ENV=dev $(nix-build -A hswaw.signage.local.runtime --no-out-link)/bin/love hswaw/signage/

Custom configs
---

You can either modify config.lua and rebuild, or specify a custom config at runtime by setting the `SIGNAGE_CONFIG` environment variable.