Page 6 of 13

Re: Oysi's 3D Rendering & Physics Engine

Posted: Mon May 26, 2014 10:35 pm
by Jasoco
I like my jaw on the ground.

Re: Oysi's 3D Rendering & Physics Engine

Posted: Mon May 26, 2014 10:56 pm
by Robin
Jasoco wrote:
bartbes wrote:Garbage collection, perhaps?
Is there anything I can do to stop it happening like that? It causes noticeable framerate lag when it happens.
You could experiment with calling [manual]collectgarbage[/manual] every frame.

Re: Oysi's 3D Rendering & Physics Engine

Posted: Mon May 26, 2014 11:41 pm
by Jasoco
Robin wrote:
Jasoco wrote:
bartbes wrote:Garbage collection, perhaps?
Is there anything I can do to stop it happening like that? It causes noticeable framerate lag when it happens.
You could experiment with calling [manual]collectgarbage[/manual] every frame.
Unfortunately that ends up lowering the framerate drastically. Where I get mostly 95% smooth framerate before, it drops the overall FPS to 20-30.

Edit: I tried putting it on a cron timer and it still still slowed it down. I really need to figure out what it's cleaning up and why it's constantly creating it. Something is dirtying up the global space. Probably my old crappy coding methods.

Re: Oysi's 3D Rendering & Physics Engine

Posted: Tue May 27, 2014 1:56 am
by MGinshe
Jasoco wrote:
Robin wrote:
Jasoco wrote: Is there anything I can do to stop it happening like that? It causes noticeable framerate lag when it happens.
You could experiment with calling [manual]collectgarbage[/manual] every frame.
Unfortunately that ends up lowering the framerate drastically. Where I get mostly 95% smooth framerate before, it drops the overall FPS to 20-30.

Edit: I tried putting it on a cron timer and it still still slowed it down. I really need to figure out what it's cleaning up and why it's constantly creating it. Something is dirtying up the global space. Probably my old crappy coding methods.
I may be 100% wrong here, but from my understanding the garbagecollector runs every now and then regardless of any dirty varaibles. the lag might not be from an unused reference/table, but instead simply because the garbagecollector is searching through the global space looking for unused stuff - whether or not there actually is any.

Re: Oysi's 3D Rendering & Physics Engine

Posted: Tue May 27, 2014 8:04 am
by Robin
I don't know anything about this, but you could try pausing the garbage collector at startup and only do a step each frame, if you haven't already.

Re: Oysi's 3D Rendering & Physics Engine

Posted: Tue May 27, 2014 11:28 am
by Oysi
Let's keep the thread on topic, shall we? You can make a separate thread about that heartbeat thing.

Re: Oysi's 3D Rendering & Physics Engine

Posted: Tue May 27, 2014 8:47 pm
by Jasoco
Robin wrote:I don't know anything about this, but you could try pausing the garbage collector at startup and only do a step each frame, if you haven't already.
Alas I just tried this and it ends up crashing (Stopping abruptly) the game after a few seconds on large worlds if I don't step, and slowing it down immensely if I do step.
Oysi wrote:Let's keep the thread on topic, shall we? You can make a separate thread about that heartbeat thing.
Could a Mod split this then?

Re: Oysi's 3D Rendering & Physics Engine

Posted: Wed May 28, 2014 10:48 pm
by Oysi
Been doing some more proper texture mapping, as well as making a skybox thingy. =)

Image
Image

EDIT: (I just had to...)

Image

EDIT #2: (I just had to again...)

Image

EDIT #3: (Stop me before I break it)

Image

EDIT #4: (Haha, I actually broke it)

Image

Re: Oysi's 3D Rendering & Physics Engine

Posted: Thu May 29, 2014 1:39 am
by Nautical Mile
Oysi, this work is incredible! I love the screens you have been posting.

Are you planning to make a game at some point, or are you just focused on the rendering and physics code?

Re: Oysi's 3D Rendering & Physics Engine

Posted: Thu May 29, 2014 4:34 am
by ArchAngel075
Dont you see its already a game!

CUBEPOCOLYPSE 4:CUBE OF MENACE, HARBRINGER OF CUBE:THE GAME

anyhow, im starting to develop a strong inferiority complex everytime i see oysi post new screenies ... is that normal? :o

-edit

wow, looking closer... 300 bodies and a FPS good enough for console games...