Oysi's 3D Rendering & Physics Engine
- 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
I like my jaw on the ground.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Oysi's 3D Rendering & Physics Engine
You could experiment with calling [manual]collectgarbage[/manual] every frame.Jasoco wrote:Is there anything I can do to stop it happening like that? It causes noticeable framerate lag when it happens.bartbes wrote:Garbage collection, perhaps?
Help us help you: attach a .love.
- 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
Unfortunately that ends up lowering the framerate drastically. Where I get mostly 95% smooth framerate before, it drops the overall FPS to 20-30.Robin wrote:You could experiment with calling [manual]collectgarbage[/manual] every frame.Jasoco wrote:Is there anything I can do to stop it happening like that? It causes noticeable framerate lag when it happens.bartbes wrote:Garbage collection, perhaps?
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
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.Jasoco wrote:Unfortunately that ends up lowering the framerate drastically. Where I get mostly 95% smooth framerate before, it drops the overall FPS to 20-30.Robin wrote:You could experiment with calling [manual]collectgarbage[/manual] every frame.Jasoco wrote: Is there anything I can do to stop it happening like that? It causes noticeable framerate lag when it happens.
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.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Oysi's 3D Rendering & Physics Engine
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.
Re: Oysi's 3D Rendering & Physics Engine
Let's keep the thread on topic, shall we? You can make a separate thread about that heartbeat thing.
Follow the potato. Achieve enlightenment.
- 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
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.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.
Could a Mod split this then?Oysi wrote: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
Been doing some more proper texture mapping, as well as making a skybox thingy. =)
EDIT: (I just had to...)
EDIT #2: (I just had to again...)
EDIT #3: (Stop me before I break it)
EDIT #4: (Haha, I actually broke it)
EDIT: (I just had to...)
EDIT #2: (I just had to again...)
EDIT #3: (Stop me before I break it)
EDIT #4: (Haha, I actually broke it)
Follow the potato. Achieve enlightenment.
-
- Prole
- Posts: 11
- Joined: Thu Aug 22, 2013 5:39 pm
- Location: Canada
Re: Oysi's 3D Rendering & Physics Engine
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?
Are you planning to make a game at some point, or are you just focused on the rendering and physics code?
- ArchAngel075
- Party member
- Posts: 319
- Joined: Mon Jun 24, 2013 5:16 am
Re: Oysi's 3D Rendering & Physics Engine
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?
-edit
wow, looking closer... 300 bodies and a FPS good enough for console games...
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?
-edit
wow, looking closer... 300 bodies and a FPS good enough for console games...
Who is online
Users browsing this forum: No registered users and 5 guests