Skip to content

alexandervanrenen/fast-line-of-sight-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Line of Sight Test for 2D Games

Code for my blog post on how to optimize line of sight tests.

There are two little benchmarks:

Line Segment Intersection Benchmark

This one compares different techniques for line segment intersection.

g++ line_intersection.cpp util/*.cpp -std=c++14 -g0 -O3 -I./ -o line_intersection -flto -march=native  
./line_intersection

Line of Sight Test

This one compares different techniques for line of sight tests.

g++ line_of_sight.cpp util/*.cpp -std=c++14 -g0 -O3 -I./ -o line_of_sight -flto -march=native  
./line_of_sight

About

A fast line of sight test for 2d games

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages