Libgdx Texture Packer Upd 【FHD 720p】

java -cp gdx-tools.jar com.badlogic.gdx.tools.texturepacker.TexturePacker <inputDir> <outputDir> <packFileName>

Add this code in your create() method (ideally wrapped in a debug check so it doesn't run in production): libgdx texture packer

By packing all your game assets into one or two large images, the GPU only has to bind the texture once. It can then draw thousands of sprites using that single texture without switching contexts. This results in a massive boost in rendering performance. java -cp gdx-tools

libGDX includes a runnable JAR for the texture packer. libGDX includes a runnable JAR for the texture packer

import com.badlogic.gdx.tools.texturepacker.TexturePacker;

If you have the LibGDX tools jar, you can run the packer via the terminal. This is great for build scripts or machines without a UI.

@Override public void create() // Only run this during development! TexturePacker.Settings settings = new TexturePacker.Settings(); settings.maxWidth = 2048; settings.maxHeight = 2048;