Oysi's 3D Rendering & Physics Engine

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Oysi's 3D Rendering & Physics Engine

Post by Jasoco »

I like my jaw on the ground.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Oysi's 3D Rendering & Physics Engine

Post 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.
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Oysi's 3D Rendering & Physics Engine

Post 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.
User avatar
MGinshe
Prole
Posts: 31
Joined: Sun Apr 17, 2011 3:50 am
Location: New Zealand

Re: Oysi's 3D Rendering & Physics Engine

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Oysi's 3D Rendering & Physics Engine

Post 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.
Help us help you: attach a .love.
User avatar
Oysi
Prole
Posts: 48
Joined: Fri May 02, 2014 11:18 pm
Location: Earth

Re: Oysi's 3D Rendering & Physics Engine

Post by Oysi »

Let's keep the thread on topic, shall we? You can make a separate thread about that heartbeat thing.
Follow the potato. Achieve enlightenment.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Oysi's 3D Rendering & Physics Engine

Post 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?
User avatar
Oysi
Prole
Posts: 48
Joined: Fri May 02, 2014 11:18 pm
Location: Earth

Re: Oysi's 3D Rendering & Physics Engine

Post 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
Follow the potato. Achieve enlightenment.
Nautical Mile
Prole
Posts: 11
Joined: Thu Aug 22, 2013 5:39 pm
Location: Canada

Re: Oysi's 3D Rendering & Physics Engine

Post 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?
User avatar
ArchAngel075
Party member
Posts: 319
Joined: Mon Jun 24, 2013 5:16 am

Re: Oysi's 3D Rendering & Physics Engine

Post 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...
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests