Login  Register

Re: Crash with Animator class

Posted by Xerxes Rånby on Mar 08, 2017; 3:32pm
URL: https://forum.jogamp.org/Crash-with-Animator-class-tp4037748p4037752.html

With Animator

If you use setSwapInterval 1 then you get one update per frame
typically 60 frames / second

setSwapInterval 2 == every second frame typically 30 frames / second

setSwapInterval 0 == run as fast as possible ( not recommended)


@Override
public void init(GLAutoDrawable drawable) {

drawable.getGL().setSwapInterval(1)


2017-03-08 15:53 GMT+01:00 adi [via jogamp] <
ml-node+s762907n4037751h44@n3.nabble.com>:

> The FPS should be constant.
> The normal animator runs so fast as possible?
> Different graphicscard displays also with a different speed.
> For testing and some time calculations its not so good
> Otherwise i must self calculate the FPS rate.
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://forum.jogamp.org/Crash-with-Animator-class-tp4037748p4037751.html
> To start a new topic under jogl, email ml-node+s762907n782158h61@n3.
> nabble.com
> To unsubscribe from jogamp, click here
> <http://forum.jogamp.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=762907&code=eGVyeGVzQGd1ZGlubmEuY29tfDc2MjkwN3wtNTE5NjUwMzEw>
> .
> NAML
> <http://forum.jogamp.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>