Search found 3 matches

by fakedeltatime
Sat Apr 02, 2022 1:52 pm
Forum: Support and Development
Topic: Performance cost of built-in functions returning single values.
Replies: 5
Views: 2949

Re: Performance cost of built-in functions returning single values.

The yellow boxes are really clear, yes, but I was wondering this for the less performance intensive methods, which probably should never be a problem unless the code using it is bad enough to cause a problem, but I just got this bug of wanting to write more, even if it's slightly, efficient code whe...
by fakedeltatime
Thu Mar 31, 2022 6:32 am
Forum: Support and Development
Topic: Performance cost of built-in functions returning single values.
Replies: 5
Views: 2949

Performance cost of built-in functions returning single values.

I'm once again stumbling into the forums as my own beliefs have been challenged by code examples in the wiki, I'm wondering what the performance cost of some functions such as love.graphics.getWidth(), love.mouse.getX(), or love.timer.getTime() are. When I first started working with Love2D, I assume...
by fakedeltatime
Sun Oct 28, 2018 3:19 pm
Forum: Support and Development
Topic: Possilbe to have love.mousemoved every update?
Replies: 3
Views: 2885

Possilbe to have love.mousemoved every update?

I'm using the love.mousemoved function to get the Delta movement of the mouse to create some accelerated movement of an object, but the problem I have with it is that it doesn't update when there is no movement. I can fix this by setting the Delta values to 0 at the end of the update loop, but this ...