Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libGMDXHook

Custom Direct3D11 replacement that intercepts GameMaker's allocation of texture atlases on the GPU and converts them from 8-bit RGBA to either BC7 or 4-bit RGBA.

Caution

This library is only recommended for use on low VRAM devices when absolutely necessary.
BC7 compression has artifacts and takes long to process, 4-bit RGBA has visible color banding.

Attributions

  • BC7 Compressor: bc7enc_rdo - Copyright(c) 2020-2021 Richard Geldreich, Jr.
  • Hashing Algorithm: xxHash - Copyright (c) 2012-2021 Yann Collet

How to use

  • Add the gmdxh.dll file to your game folder of choice.
  • Open the game executable in a hex editor like HxD.
  • Locate the string d3d11.dll in the file.
  • Replace the string with gmdxh.dll.
  • The library should be ready! Try opening the game and observe VRAM usage.

About

Direct3D11 shim for GameMaker that compresses texture atlases to reduce VRAM usage.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages