Project ideas from Hacker News discussions.

Minecraft Java is switching from OpenGL to Vulkan

📝 Discussion Summary (Click to expand)

1. Shader‑compilation pain points
- “I’m not even a neophyte here but why don’t precompiled shaders solve that?” – jimbob45
- “Can’t precompile for all the combinations of hardware, driver version, operating systems, etc.” – ozarkerD
- “It kinda does. Kinda. Steam constantly downloads pre‑compiled shaders for your games.” – raincole
- “I remember Star Wars Jedi Survivor had a 5‑6 minute shader pre‑compile on my 5950X.” – MindSpunk

2. Java vs. Bedrock and the modding ecosystem
- “Switching to Vulkan breaks all the extensions too.” – direwolf20
- “Java is for the modding user‑base.” – hobofan
- “Bedrock is more performant and more portable across platforms.” – hobofan
- “The community can fill in the gaps in multiple ways.” – creatonez

3. Performance & hardware support (Vulkan, DX12, OpenGL)
- “DXVK does not need wine.” – charcircuit
- “Proton uses Vulkan to implement DX12.” – Negitivefrags
- “Vulkan requirement raises the baseline to 2016‑2017 hardware.” – creatonez
- “MoltenVK was replaced by KosmicKrisp.” – smetannik

4. Java integration and mod‑API concerns
- “Mojang will just use the Vulkan bindings provided by LWJGL.” – MrPowerGamerBR
- “JNI is effectively dead/deprecated, replaced by the Foreign Function & Memory API.” – elric
- “Mods will almost certainly be released to reimplement the rendering engine in OpenGL or GLES.” – creatonez
- “Java has a Foreign Function and Memory API.” – elric

These four themes capture the bulk of the discussion: shader‑compilation headaches, the Java‑vs‑Bedrock debate, cross‑API performance and hardware support, and the future of Java‑based modding.


🚀 Project Ideas

Cloud Shader Compilation Service (CSCS)

Summary

  • Provides a cloud‑based shader compiler that pre‑compiles Vulkan shaders for every GPU/driver/OS combination a user might run.
  • Eliminates in‑game shader compilation spikes and reduces load times for AAA titles.
  • Core value: instant shader readiness, consistent performance across hardware.

Details

Key Value
Target Audience Game developers, launchers, and large‑scale multiplayer servers
Core Feature On‑demand shader compilation, caching, and distribution via CDN
Tech Stack Docker, Kubernetes, GPU‑enabled cloud nodes (NVIDIA/AMD), REST API, CDN (Cloudflare)
Difficulty High
Monetization Revenue‑ready: subscription + per‑compile fee

Notes

  • HN commenters lament “shader compilation lag spikes” and “precompiled shaders solve that?” (charcircuit, ozarkerD). CSCS directly addresses this pain.
  • Steam’s current pre‑compiled shader download model is spotty; CSCS offers a more reliable, on‑demand cache.
  • Practical utility: game launchers can fetch compiled shaders before launch, ensuring zero stutter for players.

SafeMod API for Minecraft Java (SMAPI)

Summary

  • A sandboxed, memory‑safe modding framework built on Java’s Foreign Function & Memory API.
  • Provides a stable, version‑agnostic API for mods, reducing crashes, memory leaks, and compatibility issues.
  • Core value: safer, faster, and more maintainable mod ecosystem for Minecraft Java.

Details

Key Value
Target Audience Minecraft Java modders, server admins, content creators
Core Feature FFI‑based mod loader, sandboxed execution, automatic memory management
Tech Stack Java 21+, Foreign Function & Memory API, Kotlin DSL, Gradle plugin
Difficulty Medium
Monetization Hobby

Notes

  • Users complain about “garbage collection” and “memory leaks” in mods (cogman10, creatonez). SMAPI eliminates these by isolating mods.
  • “Modding is a huge security and stability issue” (darknavi). SMAPI’s sandbox addresses this.
  • Practical utility: mod packs can be built once and run on any Java version without crashes.

bgfx‑Rust Bindings & Build System (bgfx-rs)

Summary

  • A fully‑featured Rust crate that wraps bgfx, including a simple, declarative build system.
  • Enables indie developers to write cross‑platform games in Rust with Vulkan/DirectX/OpenGL support.
  • Core value: removes the “weird build system” barrier and gives Rust developers a modern engine.

Details

Key Value
Target Audience Indie game developers, Rust enthusiasts
Core Feature Safe Rust bindings, Cargo integration, automated shader compilation
Tech Stack Rust, Cargo, bgfx C++ library, bindgen, wasm‑target support
Difficulty Medium
Monetization Hobby

Notes

  • “Weird build system” frustration noted by nnevatie. bgfx‑Rust solves it with Cargo.
  • HN users love cross‑platform engines (e.g., “Godot alternative” discussion). bgfx‑Rust gives that with Rust safety.
  • Practical utility: quick prototyping of Vulkan games without C++ boilerplate.

Shader Permutation Optimizer (SPO)

Summary

  • Static analysis tool that scans a game’s shader code and pipeline state usage to generate a minimal set of pipeline permutations.
  • Reduces shader compilation time and memory usage by eliminating unused permutations.
  • Core value: mitigates the “shader permutation explosion” that causes stutters.

Details

Key Value
Target Audience Game engine developers, modders, performance engineers
Core Feature AST parsing, state‑usage graph, permutation pruning, pipeline cache generator
Tech Stack Python, LLVM, SPIR‑V tools, GraphViz, CLI
Difficulty Medium
Monetization Revenue‑ready: freemium (open source core + paid analytics)

Notes

  • “Shader permutation explosion” and “lag spikes” are highlighted by exDM69, jsheard. SPO directly tackles this.
  • “Pre‑compile exhaustive shaders” can take 30+ minutes (MindSpunk). SPO cuts that down by only compiling needed permutations.
  • Practical utility: game studios can integrate SPO into CI to keep shader compile times under control.

Read Later