Unexplored

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Unexplored

Post by Nixola »

I~=Spam wrote:(BTW why doesn't LOVE do this automatically? It shouldn't be too hard to do that. :( )
It might be doing that, but each time you draw you're calling a function, crossing a Lua/C barrier, something like that. Even if LÖVE culls automatically (it might be doing that already) you will still have to cross that barrier, which is one of the main bottlenecks as far as I know.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: Unexplored

Post by I~=Spam »

Nixola wrote:It might be doing that, but each time you draw you're calling a function, crossing a Lua/C barrier, something like that. Even if LÖVE culls automatically (it might be doing that already) you will still have to cross that barrier, which is one of the main bottlenecks as far as I know.
It depends on what you are doing. But crossing that boundary (at least in lua anyway) does not cost much. Plain lua was designed in such a way that crossing this boundary costs incredibly little. This was because lua was designed to be embedded in a c program from the ground up.

But because we are using luajit this gets even faster. But you are right. Calling c functions does have some overhead. But this overhead is going to be about the same (maybe less) as calling a lua function because of the way lua was designed.
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
User avatar
GreenAvoro
Prole
Posts: 4
Joined: Wed Apr 29, 2015 10:25 am

Re: Unexplored

Post by GreenAvoro »

Damn I'm loving all the sounds. I feel embarrassed about my abilities.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Unexplored

Post by bartbes »

I~=Spam wrote: But because we are using luajit this gets even faster. But you are right. Calling c functions does have some overhead. But this overhead is going to be about the same (maybe less) as calling a lua function because of the way lua was designed.
At least in puc lua it's significantly worse. In luajit there's the added problem of c calls not being eligible for jit compilation.
User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: Unexplored

Post by I~=Spam »

bartbes wrote:
I~=Spam wrote: But because we are using luajit this gets even faster. But you are right. Calling c functions does have some overhead. But this overhead is going to be about the same (maybe less) as calling a lua function because of the way lua was designed.
At least in puc lua it's significantly worse. In luajit there's the added problem of c calls not being eligible for jit compilation.
That is true. But the overhead isn't going to be much compared to a lot of other things. I think the FFI library and terria attempt to solve this but they still have their own disadvantages. (ie. no direct c++ support in FFI)
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
sabadyCZ
Prole
Posts: 9
Joined: Sat May 02, 2015 6:13 pm
Location: Czech Republic
Contact:

Re: Unexplored

Post by sabadyCZ »

Trying to make a right HUD

User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: Unexplored

Post by I~=Spam »

You say "trying"... It looks like you aren't trying anymore. You clearly succeeded. :awesome: It looks great!
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
sabadyCZ
Prole
Posts: 9
Joined: Sat May 02, 2015 6:13 pm
Location: Czech Republic
Contact:

Re: Unexplored

Post by sabadyCZ »

I~=Spam wrote:You say "trying"... It looks like you aren't trying anymore. You clearly succeeded. :awesome: It looks great!
Because I deleted it 3x and started from scratch :D and the weapon indication (in the middle) still isn't what I wanted. It's because it isn't finished yet and a few things is still missing.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Unexplored

Post by Ranguna259 »

This looks increadible, now I feel like coding a space game like No Man's Sky or Elite: Dangerous.
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Unexplored

Post by s-ol »

Very very good work on that HUD, it looks amazing!

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest