Skip to content

Instantly share code, notes, and snippets.

View Kamilkampfwagen-II's full-sized avatar

Kamilkampfwagen-II Kamilkampfwagen-II

View GitHub Profile
@mtsamis
mtsamis / SIMD_AABB.md
Created November 21, 2023 16:37
An optimized representation for 2D AABBs and SIMD intrinsics

(Note: This writeup assumes some knowledge of SIMD programming, assembly and AABBs).

Introduction

There are a couple of ways to represent an axis aligned bounding box in 2D, but I think the most common is to store the minimum and maximum coordinates. With this approach, most basic operations (overlap tests, union/intersection, etc.) have simple implementations and offer decent performance.

Some time ago, I came up with a modification to this AABB representation that has the potential for better performance. I haven't seen this technique mentioned or used anywhere, but if you have seen it somehow I would appreciate it if you could let me know.

@Thomasims
Thomasims / README.md
Last active December 12, 2023 19:25
Teardown API LuaDoc

This gist is specifically aimed at VSCode users looking to get the sumneko.lua language server to work with Teardown lua files (mod-related or otherwise.)

The 3 lua files in this gist are:

Setup

  1. Download this gist and extract it somewhere on your computer, ideally somewhere permanent so you don't have to remember to change paths later.
@lenicyl
lenicyl / CompileAP.md
Last active December 15, 2023 15:50
How to build ArmorPaint