Skip to content

Instantly share code, notes, and snippets.

View bamfbamf's full-sized avatar
💭
I'm chewing gum

CEONo1984 bamfbamf

💭
I'm chewing gum
View GitHub Profile
@courtneyfaulkner
courtneyfaulkner / devices.c
Created December 11, 2013 22:20
List OpenCL platforms and devices
#include <stdio.h>
#include <stdlib.h>
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif
int main() {
@Naphier
Naphier / ComponentCache.cs
Last active February 1, 2016 09:36
CacheBehaviour alternative
using UnityEngine;
using System.Collections.Generic;
public class ComponentCache
{
public enum LogMessageLevel { all, error, none}
LogMessageLevel logMessageLevel = LogMessageLevel.error;
private GameObject _gameObject;
private List<Component> _components = new List<Component>();
@hiroakioishi
hiroakioishi / PoissonDiskSampler3D.cs
Last active October 23, 2023 18:07
Implementation of Poisson Disk Sampling for 3D
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/// Implementation for 3D from Gregory Schlomoff's Unity source: http://gregschlom.com/devlog/2014/06/29/Poisson-disc-sampling-Unity.html
///
/// Usage:
/// PoissonDiskSampler3D sampler = new PoissonDiskSampler3D(10, 5, 7.5f, 0.3f);
/// foreach (Vector3 sample in sampler.Samples()) {
/// // ... do something, like instantiate an object at (sample.x, sample.y, sample.z) for example:
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active May 28, 2024 15:33
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) because d