Easy, you actually forgot to check positions and have no button at all, the function is executed everywhere in the window.
I guess you actually intended to put this inside the highlight part but forgot?
Search found 636 matches
- Wed Oct 13, 2021 9:42 am
- Forum: Support and Development
- Topic: These buttons execute the same callback but they are different tables!
- Replies: 10
- Views: 8666
- Sun Oct 10, 2021 8:14 am
- Forum: Support and Development
- Topic: [Solved]Löve performance issues on Ubuntu/Linux ?
- Replies: 9
- Views: 7024
Re: [Solved]Löve performance issues on Ubuntu/Linux ?
Actually scrap that, i thought on that again. Yes it might not be able to eliminate the draw call but youre forgetting about the table lookups here which are indeed eliminated by jit and there are quite a bunch in that loop. They should be easily enough to halve its speed and tip that over the edge ...
- Sun Oct 10, 2021 7:21 am
- Forum: Support and Development
- Topic: [Solved]Löve performance issues on Ubuntu/Linux ?
- Replies: 9
- Views: 7024
Re: [Solved]Löve performance issues on Ubuntu/Linux ?
AN optimizer. I was more thinking of CPU or graphic cards driver magic. Could that be plausible?
But right, drawing is not really predictable.
But right, drawing is not really predictable.
- Sat Oct 09, 2021 1:12 pm
- Forum: Support and Development
- Topic: [Solved]Löve performance issues on Ubuntu/Linux ?
- Replies: 9
- Views: 7024
Re: [Solved]Löve performance issues on Ubuntu/Linux ?
So there was a loop doing 432 times the exact same thing, i could imagine an optimizer should kick in and disable this loop for you automatically.
So you really do have an issue on ubuntu, this optimizer does not work.
So you really do have an issue on ubuntu, this optimizer does not work.
- Fri Oct 08, 2021 4:31 pm
- Forum: Support and Development
- Topic: [Solved]Löve performance issues on Ubuntu/Linux ?
- Replies: 9
- Views: 7024
Re: Löve performance issues on Ubuntu/Linux ?
That is not how you close a topic, you have to explain what actually happened.
And if there is a possibility that the same code runs fine on windows but fails on linux i want to hear how that can happen.
And if there is a possibility that the same code runs fine on windows but fails on linux i want to hear how that can happen.
- Wed Oct 06, 2021 7:19 pm
- Forum: Games and Creations
- Topic: Railway Track
- Replies: 7
- Views: 10875
Re: Railway Track
I dont think trains work like that dude.
Anyway, how do you even want it to look in the end? If you want to get rid of the rail gap you can simply add another canvas and render the rails step by step.
Anyway, how do you even want it to look in the end? If you want to get rid of the rail gap you can simply add another canvas and render the rails step by step.
- Wed Oct 06, 2021 7:02 pm
- Forum: Support and Development
- Topic: Function to find these 4 points? (simple math problem)
- Replies: 9
- Views: 5775
Re: Function to find these 4 points? (simple math problem)
I still dont get what you try to archieve here.
Writing a loop instead
points={x,y+50,x+50,y,x,y-50,x-50,y} ?
*scratches head*
There is nothing clean about this loop.
Writing a loop instead
points={x,y+50,x+50,y,x,y-50,x-50,y} ?
*scratches head*
There is nothing clean about this loop.
- Wed Oct 06, 2021 7:28 am
- Forum: Support and Development
- Topic: Function to find these 4 points? (simple math problem)
- Replies: 9
- Views: 5775
Re: Function to find these 4 points? (simple math problem)
random pointnumbers:
Code: Select all
num=4
len=50
for x=0, math.pi*2-0.01,math.pi*(2/num) do
print(math.cos(x)*len,math.sin(x)*len) -- +point of origin
end
- Wed Oct 06, 2021 7:12 am
- Forum: Support and Development
- Topic: Function to find these 4 points? (simple math problem)
- Replies: 9
- Views: 5775
Re: Function to find these 4 points? (simple math problem)
I dont see why you want a for loop for just 4 points here, that is just overcomplicating it.
Are you planning to add more points later?
Are you planning to add more points later?
- Thu Sep 30, 2021 11:37 pm
- Forum: Games and Creations
- Topic: Lead Haul - Old-school space pirate FPS
- Replies: 36
- Views: 58458
Re: Lead Haul - Old-school space pirate FPS
Neat on the first look, Yay for having bullets you can see and dodge
Lets see how fast i can finish it.
I am kinda in need of a keyconfig tho, not having wasd on my keyboard, gotta find a working controller...
If ppl would at least ad arrow keys to the controls....
Lets see how fast i can finish it.
I am kinda in need of a keyconfig tho, not having wasd on my keyboard, gotta find a working controller...
If ppl would at least ad arrow keys to the controls....