caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Nicolas Boulay <nicolas@boulay.name>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] meta-gc (Re: concurrent gc?)
Date: Fri, 25 Jul 2014 09:28:56 +0200	[thread overview]
Message-ID: <CAH+PdrB_UmbOnzW-riA7vaaOFa+yv34qxBNmUYs_EkNgJzHt5A@mail.gmail.com> (raw)
In-Reply-To: <CAJ7XQb6KZrjqj=4hdMEkWZd=KT47xmwu=E-6x7wDjam3Vz6zPQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

2014-07-24 19:37 GMT+02:00 Raoul Duke <raould@gmail.com>:

> ...
>
> to kick the question up a meta-level: Does anybody have thoughts on
> how to best orthogonalize actual memory allocation from where the
> application says it wants it? I mean if I write a stupid loop that
> makes a zillion particles in the middle of each frame render then yes
> I'm an idiot, sure... but what things can be done to actually allow
> such idiocy to squeak by?
> ...
>

On the game world, they have invented entity-component-system (
https://en.wikipedia.org/wiki/Entity_component_system ) data-driven
software architecture. The idea is to be very flexible with a "generic kind
of object" (entity), with typed component. An entity is only an integer.
The component are found inside a collection with the entity identifier.

So each component are allocated in it's own contener, so data are more
compact, and memory access appear less random.

[-- Attachment #2: Type: text/html, Size: 1482 bytes --]

      parent reply	other threads:[~2014-07-25  7:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-24 17:37 Raoul Duke
2014-07-24 19:34 ` John F. Carr
2014-07-24 19:46   ` Raoul Duke
2014-07-25  7:28 ` Nicolas Boulay [this message]

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=CAH+PdrB_UmbOnzW-riA7vaaOFa+yv34qxBNmUYs_EkNgJzHt5A@mail.gmail.com \
    --to=nicolas@boulay.name \
    --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;
as well as URLs for NNTP newsgroup(s).