Giter Club home page Giter Club logo

glare-core's Introduction

Glare Core

A bunch of C++ code used in various Glare Technologies Limited products - Indigo Renderer, Chaotica, Substrata and other projects.

Most of this code was written by Nicholas Chapman (Ono-Sendai). Some was also written by Thomas Ludwig (lycium) and Yves Collé (fused).

There's also a bunch of third-party libraries copied into this repo for building convenience.

Our code:

graphics

Various computer graphics utility classes, image/texture loading etc.

maths

Various maths utility classes. SSE vector maths, matrix maths etc.

networking

TCP and UDP socket classes, TLS sockets, an HTTP client, a WebSocket class etc.

opencl

Wrappers for OpenCL, the best GPU compute API.

opengl

A reasonably lightweight but prettty fast OpenGL physically based rendering engine. This is the OpenGL preview for Indigo Renderer, and the rendering engine for Substrata.

physics

Some ray-mesh acceleration structures etc.

simpleraytracer

Some ray tracing geometry classes etc.

video

Code for writing out high-definition video files on Windows and Mac, using OS APIs.

webserver

Code for running a HTTP server, using the networking classes in networking. Supports HTTP 1.1 and TLS.

utils

Lots of different utility classes. Some highlights:

BestFitAllocator

Best-fit memory allocator. Useful for packing stuff into larger buffers, like vertex buffers.

CircularBuffer

Circular (ring) buffer. Useful for queues while avoiding memory allocations.

Database

In-memory databased backed by disk. Pretty sweet. No doubt faster than your database.

HashMap

Fast hash table/map. Much faster than std::unordered_map.

HashSet

Fast hash table/set. Much faster than std::unordered_set.

ManagerWithCache

Something like a std::unordered_map, but also each inserted item can be 'used' or 'unused'. Unused items are stored in a list that is sorted by the order in which they became unused, so it can be used as a LRU cache. The least recently used item can be removed from the cache with removeLRUUnusedItem().

MemMappedFile

Provides read-only access to a file through memory mapping. The fastest way (AFAIK) of reading files.

Parser

Parsing class. I use it everywhere. Don't use regular expressons, parse stuff properly :)

Sort.h

Some really fast parallel radix sorting code.

StringUtils

Lots of really useful stuff in here. Used almost everywhere in my code.

TaskManager

Nice and simple tasking system for multithreaded code.

ThreadSafeQueue

The backbone of a lot of multithreaded code.

TopologicalSort

Uses something like Kahn's algorithm, see See https://en.wikipedia.org/wiki/Topological_sorting Instead of operating on a graph however, we will use maps to sets.

Vector

Custom version of std::vector with slightly different (faster) semantics and some extra methods.

glare-core's People

Contributors

ono-sendai avatar lycium avatar 852kerfunkle avatar bnolan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.