This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- CONFIGURATION | |
-- Desired output (RF/t) | |
local TARGET_OUTPUT = 30000 | |
-- Reserve at least this much energy in the buffer | |
local BUFFER_MIN = 0.5 | |
-- Attempt to stay below this much energy in the buffer | |
local BUFFER_MAX = 0.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define AA 2 | |
const float PI=acos(-1.); | |
const float EPS=.001,MAX=100.; | |
const int ITER=128; | |
float sph(vec3 p, float r){ | |
return length(p)-r; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 410 core | |
uniform float fGlobalTime; // in seconds | |
uniform vec2 v2Resolution; // viewport resolution (in pixels) | |
uniform sampler1D texFFT; // towards 0.0 is bass / lower freq, towards 1.0 is higher / treble freq | |
uniform sampler1D texFFTSmoothed; // this one has longer falloff and less harsh transients | |
uniform sampler1D texFFTIntegrated; // this is continually increasing | |
uniform sampler2D texChecker; | |
uniform sampler2D texNoise; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint as rand, random as randf | |
import math | |
import pyxel | |
class ObjectPool: | |
""" | |
ObjectPool is a data structure that grows to fit a set of objects. | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- mass | |
97794.515 kg + (35561.6 kg * 12) | |
= 524533.715 kg | |
- velocity | |
60 mile/h = 96.5606 km/h = 26.82238889 m/s | |
- displacement | |
30 feet = 9.144 m |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Init: | |
Create a context containing all needed devices (CPU(s) + GPU(s) + other(s)). | |
Create command queues for each device list in the context. | |
Create memory objects to share memory with coprocessor devices. | |
Load and link one or more computation kernels. | |
Usage: | |
Define an index-space (NDRange) of which the kernel is to be executed. | |
Set the arguments of the kernel's entry point function. | |
Enqueue a kernel for execution on one of the command queues for a particular device list. |
NewerOlder