Skip to content

Instantly share code, notes, and snippets.

@vmaks
vmaks / Unreal_Engine_Visual_Studio_2015.md
Last active April 16, 2017 10:53
Unreal Engine Visual Studio 2015

Visual Studio 2015 template

There is no template for a game after intalling Unreal Engine from Visual Studio 2015. The plugin simple install "Epic Games Launcher".

You should run "Epic Games Launcher", then sign up or log in, then choose "Unreal Engine / Library / Engine Versions / Add Versions", then click install.

After installing Unreal Engine click choose "Unreal Engine / Launch / New Project / C++ / Basic Code / Create project.

@vmaks
vmaks / d.md
Last active March 3, 2016 14:34
  1. Main loop

    while (true) {
    	for (unsigned int i = 0; i < N; i++) {
    	}
    }
@vmaks
vmaks / latency.txt
Created July 20, 2016 12:50 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@vmaks
vmaks / gcc 5 on ubuntu 14.04
Created August 8, 2016 16:44 — forked from beci/gcc 5 on ubuntu 14.04
use gcc 5.x on ubuntu 14.04
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5