DX12MC

DX12MC (DXMC) renders Minecraft with Direct3D 12 instead of OpenGL, through bgfx. It is an experimental learning project.
Back to Files

dx12mc-0.11.1+mc1.21.1.jar

File namedx12mc-0.11.1+mc1.21.1.jar
Uploader
TamKungZ_TamKungZ_
Uploaded
Oct 27, 2026
Downloads
6
Size
926.0 KB
Mod Loaders
Fabric
File ID
9340807
Type
B
Beta
Supported game versions
  • 1.21.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:dx12mc-1768492:9340807"

Learn more about Curse Maven

What's new

Changelog

Note: 0.9.0 is the version that fixes the low FPS problem. On a GT1030 it performs on par with vanilla and is playable, based on in-game testing.

Note: 0.8.8 is the first version intended to initialize git history. Earlier versions were experimental archives used while the renderer changed rapidly, so they were not added to git history.

0.11.1 - End portal and End Poem background

  • Draw the end portal and the end gateway with a port of the vanilla rendertype_end_portal shader instead of a plain white fill. The shader layers the end sky and end portal textures with Minecraft's per-layer colours, rotation, scale and game-time scroll (15 layers for the portal, 16 for the gateway). Previously these draws had no texture coordinates, so they fell back to the plain colour program and came out solid white.
  • The End Poem screen draws its background with the same render type, so it uses the same fix.
  • Add rendertype_end_gateway to the vanilla shader table; before it fell back to the default entry.
  • F3, crash reports and the log now include the graphics driver version and the Direct3D feature level of the adapter bgfx opened. Both are read once at startup from DXGI and the Direct3D 12 device; NVIDIA's four-part driver number is shown in its usual form, other vendors show the raw version, and a value that cannot be read is left out.

0.11.0 - Smaller vertices and release publishing

  • Store vertex light coordinates (UV2) as 16-bit integers instead of 32-bit floats. Terrain, GUI and other non-entity vertices shrink from 32 to 28 bytes, and entity and line vertices from 44 to 40 bytes. The shaders read the same unsigned values as before, so the rendered output does not change. In the new renderBench frame scenario on a GT 1030, GPU frame time went from 3.36 ms to 3.30 ms. This is a benchmark result, not an in-game measurement.
  • Add a renderBench frame scenario (-PbenchArgs=frame) shaped like a render-distance-12 frame: about 1.8 million terrain vertices in region pages, sky, entities, water, particles, clouds, the hand and the GUI behind their depth clears. profile reports GPU time per pass, f3 adds debug-screen text, and capture=<name> saves the frame to build/frame-bench/ for exact image comparisons.
  • Select the signing key by fingerprint instead of e-mail address.
  • Publish releases from a version tag: the workflow builds and tests the tagged commit, publishes the signed jar, sources jar, javadoc jar and POM to GitHub Packages, and creates the GitHub release with notes taken from this changelog. No files are attached to the release.

0.10.0 - Rendering fidelity

  • Translate Minecraft's mid-frame OpenGL clears to Direct3D 12. Each clear starts a new bgfx view, so the depth clears before the first-person hand and before the GUI take effect, and the level is cleared to the fog colour Minecraft sets.
  • Translate immediate draws (GUI, HUD, text, entities, particles, hand) with Minecraft's actual depth, cull, colour-mask and blend state instead of a fixed compatibility state that always tested and wrote depth and forced alpha blending.
  • Reproduce each vanilla core shader's fragment rules: the alpha discard threshold (alpha 0 for GUI, 0.1 for text, entities and particles, 0.5 for cutout_mipped) and whether it tests the texture alone, red-channel intensity text, and the lightmap lookup (filtered per vertex for terrain, texel fetch for entities, particles and text).
  • Add vanilla fog to every D3D12 program that uses it, from Minecraft's fog start, end, colour and shape, in the same distance space and mode (linear or fade) as the vanilla shader. This covers render-distance, water, lava, powder snow, blindness, darkness, nether, end and boss fog.
  • Light entities and items with Minecraft's diffuse light directions and normals, and apply the hurt and flash overlay, through a separate entity vertex layout. Terrain keeps its 32-byte layout.
  • Take texture filtering, wrapping and the mip range from Minecraft's OpenGL texture parameters. The lightmap is now sampled with linear filtering, the block atlas blends between mip levels, and sampling never goes past the last uploaded mip level.
  • Mirror single-channel textures the way OpenGL samples them (red only), so unicode-font glyphs are no longer drawn as solid boxes.
  • Skip draws aimed at offscreen render targets and OpenGL post chains (glowing-entity outlines, spectator effects) instead of drawing them onto the screen. Menu Background Blur stays disabled.
  • Draw Minecraft's line geometry. Lines (block outline, F3 axes, hitboxes, fishing line) are expanded to screen-space quads the way rendertype_lines does, and debug lines (F3+G chunk borders) are drawn as line primitives. Previously block outlines and the F3 axes were omitted, and fishing lines and debug line strips ended the game.
  • F2 screenshots and singleplayer world icons are read back from the Direct3D 12 frame through bgfx and saved by Minecraft's own screenshot code, with the same file names and chat messages.
  • Draw the text selection highlight (RenderType.guiTextHighlight), which uses OpenGL's OR_REVERSE colour logic operation. bgfx has no logic-op state, so it is drawn as two blend passes that give src | ~dst for vanilla's highlight colour. Previously selecting text in an edit box (Ctrl+A or shift-select) or drawing the creative inventory search box with a selection ended the game. Other logic operations, which vanilla does not use, still stop with a precise error.

This mod has no related projects