No I meant what I said, love.graphics.print is pretty slow. (and it seems love.graphics.getFPS is as well)
EDIT: It is pretty ironic and deep as well though, thanks for pointing that out.
Raycasting Demo (like Wolfenstein3D, just veery basic)
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
"bartbes: deep by accident"bartbes wrote:EDIT: It is pretty ironic and deep as well though, thanks for pointing that out.
Help us help you: attach a .love.
- TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
A really good optimization to raise FPS is to not draw anything.
Try it, cut out everything but the line the prints FPS. It will be huge!
This post was useless by the way.
Try it, cut out everything but the line the prints FPS. It will be huge!
This post was useless by the way.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
Since when is love.graphics.print slow? I use it all the time and never notice any slowdown. And my game draws 32x32 tiles many many times each frame as well as text for the status bar and text dialogs.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
I don't know, it appears to be, we even have a bug report for it. And, if you try it you'll see it actually does increase the FPS (it's visible, somehow I suspect the game to not use dt)
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
Is this only in 0.6.x? Because 0.5.0 is fine for me. Or is it an OS specific bug? (I'm on OS X still using 0.5.0 for my game.)
- TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
to print FPS in a windowed program use
Code: Select all
love.graphics.setCaption(love.timer.getFPS())
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
Led to same performance decrease, hmm ironically it might be getFPS after all... (or my computer is doing weird shit, which is entirely possible of course)
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
Hmm. Has anyone looked at the math yet? I know that some raytracing/raycasting engines would use pre-calculated look up tables to shave processing time off.
(USER MIGHT BE BANNED FOR THIS POST.)
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Raycasting Demo (like Wolfenstein3D, just veery basic)
I certainly haven't, though I recently saw something about someone who calculated only one wall and used a trick to get all other walls from it.
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest