Member-only story

3d Game Programming with Java and libGDX — Hints and Tricks

synapticloop
4 min readSep 10, 2020

--

Or… the journey through the x, y, and z axes through the lens of a computer screen.

TL;DR

If you want a performant game, written in Java, on the libGDX library, here are some of the handy tips and tricks that I have come across.

Whilst this is a bit of a hodge-podge of hints and tips, it is worthwhile to read through them all, even if the terms and nomenclature is not clear, it always good to have in the back of your mind that there are handy hints about a subject you are working on.

Note: this is part of a series of articles: See 3d Game Programming with Java and libGDX — Overview of Articles

Always think of performance

If there is only one thing that you do, it is this one.

Always think of performance. If you leave this too long, all of the small decisions that you have made without thinking of performance will add up, and it will be too late to fix them, and your game will run slow.

Table of contents

  1. Code Related
  2. libGDX related
  3. Model related
  4. Other considerations

Code Related

Pre-compute everything

Well, at least as much as you can, save time and CPU cycles. If you can work it out before hand, rather…

--

--

synapticloop
synapticloop

Written by synapticloop

IT // Writer // 🫶 Got 30 seconds? Support my daughter's writing https://synapticloop.medium.com/piper-e0e565e266c7 🫶

No responses yet