LWJGL Forum

Please login or register.

Login with username, password and session length
Pages: [1] 2 3 ... 10
 1 
 on: July 23, 2017, 03:22:56 
Started by Fataho - Last post by Fataho
I have found the problem. I was creating a FloatBuffer every time I needed a Matrix4f. GC had to remove all created FoatBuffers and that was the reason of spikes.

 2 
 on: July 22, 2017, 19:23:15 
Started by nbilyk - Last post by spasi
A much better alternative is to use a debug context and GLUtil.setupDebugMessageCallback().

If you still need GLUtil.getErrorString, you can copy/paste the code from here.

 3 
 on: July 22, 2017, 17:09:39 
Started by nbilyk - Last post by nbilyk
I just updated to LWJGL 3.1.2 and GLUtil.getErrorString(errorCode) doesn't seem to exist anymore. What's the new way to do this?

Previous code (Kotlin):
Code: [Select]
val errorCode = GL11.glGetError()
if (errorCode != GL11.GL_NO_ERROR) {
throw Exception("GL ERROR: " + GLUtil.getErrorString(errorCode) + " code: $errorCode")
}

 4 
 on: July 22, 2017, 06:39:59 
Started by bobjob - Last post by bobjob
Brilliant, I was not able to observe the bug in that latest version.

Thanks spasi. Im always impressed by the way you have a nack for fixing code.

 5 
 on: July 21, 2017, 19:58:41 
Started by bobjob - Last post by spasi
Sorry for the delay, 3.1.3 #5 is now available with a, hopefully, fixed jemalloc build. Could you please give it a try?

 6 
 on: July 21, 2017, 10:37:03 
Started by Fataho - Last post by Fataho
are you manually calling System.gc() in your code?

No. I do nothing what is related to GC. The spike frequency increases when I load more models into 3d space, since more frequently GC is called. And it does not matter how much memory GC has to clean, even if it is few megabytes, the FPS decrease spike still happens.

 7 
 on: July 21, 2017, 10:20:39 
Started by Fataho - Last post by bobjob
are you manually calling System.gc() in your code?

 8 
 on: July 21, 2017, 09:37:17 
Started by bcbradle - Last post by bcbradle
https://github.com/bcbradle/glfw

https://github.com/bcbradle/gl

https://github.com/bcbradle/gl-examples

Someday soon I hope to make video games in clojure; a big thankyou to all the people who have worked on lwjgl for making that possible!

 9 
 on: July 21, 2017, 03:28:48 
Started by CJBurkey - Last post by orange451
You should try to migrate away from BufferedImage though. It uses a considerable amount of Memory, and is quite slower than the STB library included with LWJGL3

 10 
 on: July 20, 2017, 21:04:34 
Started by Fataho - Last post by Fataho
Perhaps you are generating too much garbage?
Hard to say without knowing what you do.

But spikes appear even heap is practically empty? It does not look like this is the case. Also you can see in plots that heap memory is not that full.

Pages: [1] 2 3 ... 10