Skip to content

Instantly share code, notes, and snippets.

@mleise
mleise / gist:4ed5637371ca5cea07bef8241adc7d80
Created July 14, 2016 16:23
Pentium III-M (Tualatin, 512kb L2-cache)
Building package cpuid in /home/marco/.dub/packages/cpuid-0.2.4/
Generating test runner configuration '__test__library__' for 'library' (library).
Performing "unittest" build using dmd for x86.
cpuid 0.2.4: building configuration "__test__library__"...
Linking...
Running .dub/packages/cpuid-0.2.4/__test__library__
################ Unified Information ################
Cores per CPU = 1
Threads per CPU = 1
------------------ TLB Information ------------------
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "4:0:0"
// Compile with:
// ldc2 -O5 -check-printf-calls -fdata-sections -ffunction-sections -release -singleobj -strip-debug -wi -disable-boundscheck -L=--gc-sections -L=-s D.d
@safe:
import std.conv, std.stdio, std.parallelism;
enum LEVEL_SIZE = 50; /// Width and height of a level
enum ROOMS = 100; /// Maximum number of rooms in a level
enum ROOM_SIZE_BASE = 2; /// Rooms will be at least this value plus one in size.
enum ROOM_SIZE_MOD = 8; /// Random additional room size: [0 .. ROOM_SIZE_MOD)