Nape Physics Engine, has its own gc system.
Unused vectors are stored in a linked list, and when a new vector is needed, an old vector will be picked instead.
This implementation is really fast.
http://napephys.com/
http://napephys.com/docs/types/nape/geom/Vec2List.html
http://napephys.com/help/manual.html#Object_Pooling
Post-0.10.0 feature wishlist
Re: Post-0.10.0 feature wishlist
You could just use a stack for this, no linked list needed. And it is faster still.
-
- Party member
- Posts: 134
- Joined: Tue Mar 29, 2011 11:05 pm
Re: Post-0.10.0 feature wishlist
I see SpriteBatch:setColor() which I just figured out how to use in my game.
What I'm looking at, is it possible to have SpriteBatch:setBlendMode() ?
I'm thinking it's not practicle for most blend modes, but what about just "alpha", "add" and "subtract"; I mean, is there a technical limitation to prevent this from being implemented?
Cheers big ears.
What I'm looking at, is it possible to have SpriteBatch:setBlendMode() ?
I'm thinking it's not practicle for most blend modes, but what about just "alpha", "add" and "subtract"; I mean, is there a technical limitation to prevent this from being implemented?
Cheers big ears.
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Post-0.10.0 feature wishlist
It may or may not be practical, but iirc the colors work as (extra) vertex attributes for each defined sprite in the batch; as far as i know, you can't set the blendMode like that. (Or at the least, you can't have separate blendmodes in one draw call, which is i think what spritebatches do) This is something probably relevant that i've found.drunken_munki wrote:(...)
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Post-0.10.0 feature wishlist
I'm beginning to think that an official "love-maker" would be a good idea. There have been some heroic unofficial attempts at creating a script for doing this in the past, but it's still a pain point for me.
I also would love it very much if LÖVE was smart enough to handle .love files made by compressing a folder instead of a list of files.
I also would love it very much if LÖVE was smart enough to handle .love files made by compressing a folder instead of a list of files.
When I write def I mean function.
Re: Post-0.10.0 feature wishlist
Yes and yes, definitely. I think we need an official, actively supported tool for packaging. There are too many tools out there that die almost as soon as they are made.kikito wrote:I'm beginning to think that an official "love-maker" would be a good idea. There have been some heroic unofficial attempts at creating a script for doing this in the past, but it's still a pain point for me.
I also would love it very much if LÖVE was smart enough to handle .love files made by compressing a folder instead of a list of files.
-
- Citizen
- Posts: 67
- Joined: Tue Jan 14, 2014 11:03 pm
Re: Post-0.10.0 feature wishlist
+1
It would be great to have some sort of command line options to handle packaging properly, with all the icons (iOS and adroid alone need a lot of them) and maybe a simple initial project creation. A few examples:
love create MyProject -p ios,adroid
love create MyProject -p win,osx,linux
love package MyProject -p ios,osx
Still talking about workflow, on iOS you need to copy the love file either via iTunes or open it through Safari. It would be aweome if you could specify a network storage or an address where you could pick up the .love file you want. This way one could cut quite a few steps in the build/test process (zip the file, upload somewhere, open safari, run in love).
Even better, considering the command line tool mentioned before, something that could push changes to device via network:
love serve MyProject -ip 192.168.1.10
I believe Corona is doing something similar now: https://docs.coronalabs.com/guide/distr ... liveBuild/
Keep loving!
It would be great to have some sort of command line options to handle packaging properly, with all the icons (iOS and adroid alone need a lot of them) and maybe a simple initial project creation. A few examples:
love create MyProject -p ios,adroid
love create MyProject -p win,osx,linux
love package MyProject -p ios,osx
Still talking about workflow, on iOS you need to copy the love file either via iTunes or open it through Safari. It would be aweome if you could specify a network storage or an address where you could pick up the .love file you want. This way one could cut quite a few steps in the build/test process (zip the file, upload somewhere, open safari, run in love).
Even better, considering the command line tool mentioned before, something that could push changes to device via network:
love serve MyProject -ip 192.168.1.10
I believe Corona is doing something similar now: https://docs.coronalabs.com/guide/distr ... liveBuild/
Keep loving!
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Post-0.10.0 feature wishlist
Keep in mind love is open source and anyone is welcome to contribute! I don't really have the capacity to significantly improve distribution workflow myself, right now.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Post-0.10.0 feature wishlist
I can totally sympathise. My free time has diminished dignificantly in the recent months, and my open source projects are stalling a bit.slime wrote:Keep in mind love is open source and anyone is welcome to contribute! I don't really have the capacity to significantly improve distribution workflow myself, right now.
But wishes, like love, are free
When I write def I mean function.
Make Shader:send not throw an error, but return a status instead.
The rationale is that it's worse to have the code work flawlessly in your computer, and then crash when the program is made public (case in point), than to have a hard time debugging shader code because of a mistyped variable, because when it works, it will (in principle) work for everyone.
Also, the status code provides debuggability.
Also, the status code provides debuggability.
Who is online
Users browsing this forum: No registered users and 3 guests