Difference between revisions of "FAQ"
(Created page with "Common questions newbies might have about LÖVE == Why doesn't LÖVE include a vector library? == slime wrote: <blockquote> The main problem with LÖVE's APIs using vector...") |
|||
Line 3: | Line 3: | ||
== Why doesn't LÖVE include a vector library? == | == Why doesn't LÖVE include a vector library? == | ||
− | slime wrote: | + | slime [https://love2d.org/forums/viewtopic.php?f=3&t=81457&start=50#p193807 wrote]: |
<blockquote> | <blockquote> | ||
Line 11: | Line 11: | ||
</blockquote> | </blockquote> | ||
− | + | [https://love2d.org/forums/viewtopic.php?f=3&t=82815 More discussion] |
Revision as of 02:36, 29 August 2016
Common questions newbies might have about LÖVE
Why doesn't LÖVE include a vector library?
slime wrote:
The main problem with LÖVE's APIs using vector objects is that in Lua, vector objects tend to create a lot of garbage if used heavily. So having them required for using LÖVE functions prevents optimal performance. Some engines go to extreme lengths to try to work around that: https://www.youtube.com/watch?v=wTjyM7d7_YA#t=23m6s
I don't want to make vector-specific function variants either, as that would make the API a lot messier.