Occulus rift, seems there is a 20 fps hard cap

You have to remove all of your current, built-in jME3-related libraries. Only reference the ones you got from my github repository. Ideally, you will use github to clone my repository so you can regularly pull library updates, though. That error you are getting shows you probably are still loading & using old jME 3.0 libraries. You have to use all of my jME3 libraries (jme3-core etc.) as a replacement to properly upgrade to 3.1.

Thanks you for your help.
When i run my project without the oculus dk2 plugged in, everything works fine
and i get the expected window with the 2 eyes. However when i plug in
the oculus, it shows a black screen for 1sec and afterwards the screen
shuts down.
AL lib: (EE) alc_cleanup: 1 device not closed[From Service]
Lost 2 IMU samples: 2999 2 4
OVRCreateDXGIFactory2 result 0x0
OVRCreateDXGIFactory2 result 0x0
OVRCreateDXGIFactory2 result 0x0
OVRCreateDXGIFactory2 result 0x0
OVRCreateDXGIFactory2 result 0x0
OVRCreateDXGIFactory2 result 0x0
OVRCreateDXGIFactory2 result 0x0
OVRCreateDXGIFactory2 result 0x0
Java Result: 1
BUILD SUCCESSFUL (total time: 13 seconds)

someone you could tell me what is the problem please

Are you in Extended mode? Direct mode doesn’t work. Also, only SDK v0.4.4 is supported.

Is direct mode broken on all configs? I know it doesn’t work on some, but I’ve been running in on Win7/Nvidia.

if i am in Extended mode i have this
Oculus Rift NOT found or initialized; virtual DK2 created
and my glasses does not light

I’m not sure if Direct mode is completely broken, it might work in some cases. However, I’d start by trying to get it working in Extended mode first.

Are you running the v0.4.4 SDK? If you’ve updated to v0.5 or v0.6, I doubt things will work correctly. The library is currently in transition to OpenVR, so it is hard to support the deprecated Oculus Rift SDK stuff.