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
"/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"
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
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];
<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
if (size.x != width || size.y != height) {
size.set(width, height);
if (textureName.get(0) != 0) {
gl4.glDeleteTextures(Texture.MAX, textureName);
}
textureName.position(Texture.COLOR);
gl4.glCreateTextures(GL_TEXTURE_2D_MULTISAMPLE, 1, textureName);
@elect86
elect86 / fs
Last active August 4, 2016 07:40
#version 330
#include semantic.glsl
// Outgoing final color.
layout (location = 1) out int outputColor;
in Block
{
flat int id;
Computer Information:
Manufacturer: Acer
Model: Predator G3-605
Form Factor: Desktop
Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
CPU Family: 0x6
"C:\Program Files\Java\jdk1.8.0_112\bin\java" "-javaagent:C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 171.2272.14\lib\idea_rt.jar=64446:C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 171.2272.14\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_112\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_112
++++ Test Singleton.ctor()
++++ Test Singleton.lock()
SLOCK [T SingletonServerSocket1-localhost/127.0.0.1:59999 @ 1491117002114 ms III - Start
SLOCK [T main @ 1491117002114 ms +++ localhost/127.0.0.1:59999 - Locked within 1 ms, 1 attempts
++++ TestCase.setUp: com.jogamp.opengl.test.junit.jogl.glsl.TestGLSLShaderState01NEWT - test00NoShaderState_Validation
XineramaGetLibHandle: using lib libXinerama.so.1 -> 0x7fac946b7a30
XineramaGetQueryFunc: trying func 0x7fac946b7a30 -> XineramaIsActive
XineramaGetQueryFunc: got func 0x7fac27dfe180
XineramaIsEnabled: has Xinerama Ext: ext 1, query-func 0x7fac27dfe180
X11GLXContext [Version 4.5 (Core profile, arb, debug, compat[ES2, ES3, ES31, ES32], FBO, hardware) - 4.5.0 NVIDIA 367.57 [GL 4.5.0, vendor 367.57.0 (NVIDIA 367.57)], options 0x7c25, this 0x5fdef03a, handle 0x7fac946d9700, isShared false, jogamp.opengl.gl4.GL4bcImpl@3b22cdd0,
DKMS make.log for nvidia-375.39 for kernel 4.10.0-19-generic (x86_64)
gio 20 apr 2017, 20.34.25, CEST
make "CC=cc" KBUILD_VERBOSE= -C /lib/modules/4.10.0-19-generic/build M=/var/lib/dkms/nvidia/375.39/build ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/4.10.0-19-generic/build NV_KERNEL_OUTPUT=/lib/modules/4.10.0-19-generic/build NV_KERNEL_MODULES="nvidia nvidia-uvm nvidia-modeset nvidia-drm" INSTALL_MOD_DIR=kernel/drivers/video modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-19-generic'
SYMLINK /var/lib/dkms/nvidia/375.39/build/nvidia/nv-kernel.o
SYMLINK /var/lib/dkms/nvidia/375.39/build/nvidia-modeset/nv-modeset-kernel.o
CONFTEST: INIT_WORK
CONFTEST: follow_pfn
CONFTEST: remap_pfn_range
CONFTEST: vmap