LWJGL
May 22, 2012, 14:33:14 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: 1 [2]
  Print  
Author Topic: String and primitive parameters/return values - Feedback request  (Read 3347 times)
elFarto
Newbie
*
Posts: 6


« Reply #15 on: March 29, 2010, 04:53:37 »

Thanks for that.

Is there any plan for improving the native implementation of those methods? Currently you use the original method that expects a IntBuffer to be passed in, but when dealing with, say glGetTextures, you can write the native implementation like:

GLint foo;
glGenTextures(1, &foo);
return foo;

This would presumably be faster/more efficient as you wouldn't need to manage the buffers.

Regards
elFarto
Logged
spasi
Nerdus Imperius
*****
Posts: 643



WWW
« Reply #16 on: March 29, 2010, 06:21:00 »

We already have support for this (see the 6 new methods in OpenAL) and I did consider doing it for OpenGL too. The problem is that it would require a new native implementation for each alternative method and, based on some quick calculations, it would add 80-90 kb to LWJGL's native binaries. Along with the fact that all these methods are not performance sensitive, I decided it wasn't worth doing. LWJGL is already getting bloated with all these new extensions coming out every 6 months, I thought it will be important for web-deployed apps that LWJGL stays small in size.

In any case, this was a personal decision and can be changed easily if the community decides otherwise.
Logged

Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!