Updated Spice SDK (markdown)

bicarus
2026-09-06 22:44:29 -07:00
parent 40b5aac16d
commit 79779796b1
+2 -2
@@ -1,8 +1,8 @@
Spice SDK is a flat C, header-only library that can be included in your hook DLL to write **spice plugins**.
Once initialized, you can call directly into helper routines provided by Spicetools executable, making low-latency and high-throughput interactions possible. There are no network packets or JSON marshalling; it's just function pointers.
Once initialized, the plugin call directly into helper routines provided by Spicetools executable, making low-latency and high-throughput interactions possible. There are no network packets or JSON marshalling; it's just function pointers.
This is meant to be an alternative to writing applications over Spice API; as the API uses JSON over the network (or serial), there are issues with performance, latency, and reliability.
Plugins are meant to be an alternative to writing applications over Spice API; as the API uses JSON over the network (or serial), there are issues with performance, latency, and reliability.
For example, you could write a DLL that communicates to your custom controller over COM, knowing that if you call `set_button` from your DLL, it will be consumed by Spice the next time the game polls for I/O.