From: Jon Harrop <jdh30@cam.ac.uk>
To: caml-list@inria.fr
Subject: Re: [Caml-list] OpenGL
Date: Sun, 11 Apr 2004 13:01:34 +0100 [thread overview]
Message-ID: <200404111301.34781.jdh30@cam.ac.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0404110037090.25700-100000@localhost.localdomain>
On Sunday 11 April 2004 7:20 am, Brian Hurt wrote:
> ...
> second, or 1 frame every 16.6ms, a 20ms pause to garbage collect is bad.
> This is soft realtime, but it's still realtime programming. And I have
> reliable reports of people seeing 500ms pauses in Java programs.
>
> Wether this would be a problem for Ocaml or not I can't speak to.
Well, I'm writing real-time graphical programs in ocaml and, so far, I haven't
had any problems with the GC. At one point I thought I had a serious problem
with it, but it turned out that increasing the number of vertices in a
display list over an unknown (to me, at least) theshold was resulting in a 4
orders of magnitude drop in performance in the GL, nothing to do with ocaml
or its GC.
> ...
> Notice how I phrased my response. Especially since currently the vast
> majority of heavy computation is done on the graphics card, I'd expect the
> overhead of the API to be lost in the noise.
Although the "vast majority of heavy computation" may be done on the graphics
card, don't forget that the relatively easy computations done on the vastly
slower CPU in serial are just as responsible for the overall speed.
Cheers,
Jon.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-04-11 12:01 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-08 15:11 Jon Harrop
2004-04-07 16:07 ` Issac Trotts
2004-04-08 16:35 ` Jon Harrop
2004-04-08 20:19 ` Issac Trotts
2004-04-08 20:46 ` [Caml-list] Re: Triangle (was: OpenGL) Christophe TROESTLER
2004-04-08 22:25 ` [Caml-list] OpenGL Jon Harrop
2004-04-09 1:45 ` Brian Hurt
2004-04-09 2:57 ` Brandon J. Van Every
2004-04-09 10:57 ` Jon Harrop
2004-04-09 16:12 ` Brian Hurt
2004-04-10 4:32 ` Brandon J. Van Every
2004-04-10 4:59 ` Kenneth Knowles
2004-04-10 8:17 ` Nicolas Cannasse
2004-04-11 6:20 ` Brian Hurt
2004-04-11 8:10 ` skaller
2004-04-11 9:23 ` Brandon J. Van Every
2004-04-11 12:08 ` Jon Harrop
2004-04-11 12:01 ` Jon Harrop [this message]
2004-04-09 12:52 ` Issac Trotts
2004-04-08 16:37 ` Anil Madhavapeddy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200404111301.34781.jdh30@cam.ac.uk \
--to=jdh30@cam.ac.uk \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox