Skip to content

Instantly share code, notes, and snippets.

@zeux
zeux / murmur.h
Last active Mar 20, 2021
MurMurHash finalizers as 32-bit integer/pointer hashers
View murmur.h
uint32_t murmur2(uint32_t h)
{
h ^= h >> 13;
h *= 0x5bd1e995;
h ^= h >> 15;
return h;
}
uint32_t murmur3(uint32_t h)
View roblox-graphics-apis-2021.md

State of Roblox graphics API across all platforms, with percentage deltas since EOY 2020. Updated March 16 2021.

Windows

API Share
Direct3D 11+ 90% (+1%)
Direct3D 10.1 6% (-1%)
Direct3D 10.0 3.5%
Direct3D 9 0.5%
View roblox-graphics-apis-2020.md

State of Roblox graphics API across all platforms, with percentage deltas since EOY 2019. Updated December 27 2020.

Windows

API Share
Direct3D 11+ 89% (+4%)
Direct3D 10.1 7% (-2%)
Direct3D 10.0 3.5% (-1.5%)
Direct3D 9 0.5% (-0.5%)
@zeux
zeux / luau_features.pdf
Last active Feb 27, 2021
Frequently asked questions about the Lua VM work we (Roblox) are doing.
View luau_features.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zeux
zeux / clang27.md
Last active Feb 6, 2021
How does clang 2.7 hold up in 2021?
View clang27.md

A friend recently learned about Proebsting's law and mentioned it to me off hand. I knew about the law's existence but I never really asked myself - do I believe in it?

For people who aren't aware, Proebsting's law states:

Compiler Advances Double Computing Power Every 18 Years

Which is to say, if you upgrade your compiler every 18 years, you would expect on average your code to double in performance on the same hardware.

Let's C about this

View roblox-graphics-apis-2019.md

State of Roblox graphics API across all platforms, with percentage deltas since EOY 2018. Updated December 29 2019.

Windows

API Share
Direct3D 11+ 85% (+5%)
Direct3D 10.1 8.5% (-1.5%)
Direct3D 10.0 5.5% (-2.5%)
Direct3D 9 1% (-1%)
@zeux
zeux / roblox-graphics-api-2016.md
Last active Dec 28, 2020
ROBLOX Graphics APIs - EOY 2016
View roblox-graphics-api-2016.md

Windows

API Share
Direct3D 11+ 71%
Direct3D 10.1 14%
Direct3D 10.0 11%
Direct3D 9 4%

D3D9 seems to be dropping by about 0.5% every 2 months - if this keeps going we'll be able to phase it out late next summer.

View roblox-graphics-apis-2018.md

State of Roblox graphics API across all platforms, with percentage deltas since EOY 2017. Updated December 17 2018

Windows

API Share
Direct3D 11+ 80% (+3%)
Direct3D 10.1 10% (-1%)
Direct3D 10.0 8% (-1%)
Direct3D 9 2% (-1%)
@zeux
zeux / fbm-generator.lua
Last active Dec 12, 2020
Generate ROBLOX Smooth Terrain using fBm
View fbm-generator.lua
local noise = math.noise
local sizeX = 32
local sizeY = 32
local sizeZ = 32
local air = Enum.Material.Air
local grass = Enum.Material.Grass
local sand = Enum.Material.Sand
@zeux
zeux / vcachetester.cpp
Created Aug 1, 2017
Source code for "Optimal grid rendering is not optimal" article.
View vcachetester.cpp
#include <d3d11.h>
#include <d3dcompiler.h>
#include <stdio.h>
#include <assert.h>
#include <cassert>
#include <cmath>
#include <vector>
#pragma comment (lib, "d3d11.lib")