Skip to content

Instantly share code, notes, and snippets.

View elect86's full-sized avatar
🏠
Working from home

Giuseppe Barbieri elect86

🏠
Working from home
View GitHub Profile
<elect> I have a really hot loop, it's a modified version of the bindlessApp sample from Nvidia
* AlphaAtom (~textual@cpc3-bath5-2-0-cust183.aztw.cable.virginm.net) has joined
* GarrettShields (~GarrettSh@2607:fea8:a120:2b:658b:ef40:c2c0:714c) has joined
<elect> 40k objects and I am updating an uniform buffer per object
<elect> the buffer is persistently mapped
* AlphaAtom has quit (Max SendQ exceeded)
<elect> gl4.glBufferStorage(GL_UNIFORM_BUFFER, uniformBlockSize, null, GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT);
<elect> but when i render, I get artifacts
* langkid1 (~langkid1@bnc.langkid1.me) has joined
* AlphaAtom (~textual@cpc3-bath5-2-0-cust183.aztw.cable.virginm.net) has joined
private void createGeometry(float radius, short rings, short sectors) {
float R = 1f/(float)(rings-1);
float S = 1f/(float)(sectors-1);
short r, s;
float x, y, z;
points = new float[rings * sectors * 3];
normals = new float[rings * sectors * 3];
texcoords = new float[rings * sectors * 2];
PS D:\Documents\NetBeansProjects\jogamp\gluegen\make> ant
Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\jre1.8.0_51\lib\tools.jar
Buildfile: D:\Documents\NetBeansProjects\jogamp\gluegen\make\build.xml
jogamp.env.validation:
[echo] ant.version Apache Ant(TM) version 1.9.4 compiled on April 29 2014
[echo] ant.java.version 1.8
[echo] java.version 1.8.0_51
[echo] java.home C:\Program Files (x86)\Java\jre1.8.0_51
[echo] jvmJava.exe C:\Program Files (x86)\Java\jre1.8.0_51/bin/java
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/home/elect/Downloads/ogldev-source/tutorial22'
cd ../Common && /usr/bin/make -f Makefile CONF=Debug
make[2]: Entering directory '/home/elect/Downloads/ogldev-source/Common'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[3]: Entering directory '/home/elect/Downloads/ogldev-source/Common'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/libcommon.a
make[4]: Entering directory '/home/elect/Downloads/ogldev-source/Common'
mkdir -p build/Debug/GNU-Linux-x86/FreetypeGL
rm -f "build/Debug/GNU-Linux-x86/FreetypeGL/font-manager.o.d"