Page 2 of 3
Re: Unexplored
Posted: Sun May 03, 2015 9:09 am
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.
Re: Unexplored
Posted: Mon May 04, 2015 3:59 am
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.
Re: Unexplored
Posted: Mon May 04, 2015 10:13 am
by GreenAvoro
Damn I'm loving all the sounds. I feel embarrassed about my abilities.
Re: Unexplored
Posted: Tue May 05, 2015 8:41 am
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.
Re: Unexplored
Posted: Tue May 05, 2015 5:57 pm
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)
Re: Unexplored
Posted: Fri May 08, 2015 9:14 pm
by sabadyCZ
Trying to make a right HUD
Re: Unexplored
Posted: Sat May 09, 2015 3:41 am
by I~=Spam
You say "trying"... It looks like you aren't trying anymore. You clearly succeeded.
It looks great!
Re: Unexplored
Posted: Sat May 09, 2015 7:58 am
by sabadyCZ
I~=Spam wrote:You say "trying"... It looks like you aren't trying anymore. You clearly succeeded.
It looks great!
Because I deleted it 3x and started from scratch
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.
Re: Unexplored
Posted: Sun May 10, 2015 12:09 pm
by Ranguna259
This looks increadible, now I feel like coding a space game like No Man's Sky or Elite: Dangerous.
Re: Unexplored
Posted: Sun May 10, 2015 1:07 pm
by s-ol
Very very good work on that HUD, it looks amazing!