LWJGL 0.94 Released

Started by Matzon, December 14, 2004, 21:22:48

Previous topic - Next topic

Matzon

0.94 has been released here

This is mainly a bugfix release, however it does include:
* Mac OS X port, made possible using your donation money
* Devil support (win32 initially)
* lots of other stuff I always remember... - bloody devs, never sending me any changelogs :p

This release does not contain any noteworthy changes to the fmod port, since another binding is in the works - due to be released in a week or two - depending on the quality and license of that binding we'll decide lwjgl's fmod bindings future.

Note For now:
* Fmod is win32 & linux
* Devil is win32
Still working on enabling this on all 3 platforms

AFAIK, there are no API incompatibilities.
Elias: recent mouse changes, with regards to mouse grabbed and delta - may cause breakage?

elias4444

You guys are amazing! Thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you... well, you get the idea...

:D  :D  :D
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

Chman

Great news, especially for the mac support !

Chman

elias4444

Ummm... is there supposed to be an OpenAL dll in the win32 versions package?
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

EgonOlsen

I'm getting this (using the Windows binary dist):

java.lang.UnsatisfiedLinkError: nalGenBuffers
	at org.lwjgl.openal.AL10.nalGenBuffers(Native Method)
	at org.lwjgl.openal.AL10.alGenBuffers(AL10.java:932)
	at naroth.sound.OpenALSound.<init>(OpenALSound.java:66)
	at naroth.util.SoundUtils.initSound(SoundUtils.java:15)
	at naroth.util.SoundUtils.loadSounds(SoundUtils.java:25)
	at naroth.Naroth.init(Naroth.java:121)
	at naroth.start.StartFrame$Runner.run(StartFrame.java:208)
	at java.lang.Thread.run(Thread.java:534)


BTW: Off topic, but i tried to post this using the link to the forum provided on the lwjgl-homepage. It doesn't work...

Matzon

I forgot to add the oal dll - new file up:
lwjgl-win32-0.94-2.zip

Matzon

Quote from: "EgonOlsen"
BTW: Off topic, but i tried to post this using the link to the forum provided on the lwjgl-homepage. It doesn't work...
Uhm, ... eh?
the link at the front page just points to this thread-  can't see any reason for you not being able to post?

elias4444

I think he's referring to the "Forum" link itself. It's pointing to forum.lwjgl.org, which isn't coming up.
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

EgonOlsen

Quote from: "Matzon"
Quote from: "EgonOlsen"
BTW: Off topic, but i tried to post this using the link to the forum provided on the lwjgl-homepage. It doesn't work...
Uhm, ... eh?
the link at the front page just points to this thread-  can't see any reason for you not being able to post?
No, i'm talking about the link on the left...that one to forum....

EgonOlsen

Ok, sound works now. How about util.timer? It seems to be broken as i'm getting negative times from it. It worked fine in 0.92 and 0.93, but now my game tries to adjust itself to -0.27272... :wink:

Edit: It works fine again if i'm replacing the lwjgl_util.jar of 0.94 with the one from 0.93

Matzon

the forum stuff is temporary  - the relevant dns server is down.
as for the timer stuff, I am not aware of any issues, however Cas did commit a timer change a week ago:
http://cvs.sourceforge.net/viewcvs.py/java-game-lib/LWJGL/src/java/org/lwjgl/util/Timer.java

EgonOlsen

It is allowed to create as many instances of Timer as i want, isn't it?
I compared the results that i'm getting from 0.93 and 0.94...they are both strange, but they only hurt in 0.94...let's see (i have 3 instances of Timer, all instanciated more or less at startup):

0.93
naroth.util.timer.LWJGLTimeProvider@13f7281:2.090642
naroth.util.timer.LWJGLTimeProvider@64883c:20855.654
naroth.util.timer.LWJGLTimeProvider@453807:1.1789659


This works becuase i care only for the delta, not for the times itself...but why does one Timer is counting 2xxxx...??

In 0.94, it looks like this:

naroth.util.timer.LWJGLTimeProvider@15bdc50:0.5311144
naroth.util.timer.LWJGLTimeProvider@18941f7:-0.19965774
naroth.util.timer.LWJGLTimeProvider@88e2dd:0.20388663


The behaviour is not what i expect, too. Anyway, this time it gives me negative values and that hurts me somewhere in my code.

An i using the Timer wrong? Can there only be one instance of it?

Edit: The code for LWJGLTimeProvider:

package naroth.util.timer;

import org.lwjgl.util.Timer;
import com.threed.jpct.*;

public class LWJGLTimeProvider implements TimeProvider {

   private Timer timer=null;

   public LWJGLTimeProvider() {
      timer=new Timer();
      Logger.log("Timer initialized: LWJGL hires timer", Logger.MESSAGE);
  }

  public long currentTimeMillis() {
     timer.tick();
     System.out.println(this+":"+timer.getTime());
     return (long) (timer.getTime()*1000f);
  }
}

EgonOlsen

I've modified LWJGLTimeProvider to work with one static instance of Timer, but to no avail. I wrote a test to see how it compared to my SunMiscTimeProvider. They are in sync for about 600ms. After that, the LWJGL-Timer fails, while the Sun one is still working as expected.

EgonOlsen

I've found something...this line:

currentTime = (int) Sys.getTime();

in Timer doesn't seem to be a good idea. My machine delivers something like 2083154160188 right after startup. Not a good idea to cast this into an int...

baegsi

Quote from: "Matzon"
* Devil support (win32 initially)

This is so cool, thank you thank you thanky you !!!  :)