Problem with love.mousepressed/released and bordered window
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Problem with love.mousepressed/released and bordered window
*snipped*
Last edited by Bayrock on Fri Jan 30, 2015 3:52 am, edited 2 times in total.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Problem with love.mousepressed/released and bordered win
Yeah, this is an annoying one. Windows is acting weird, and whenever you drag a window, it pauses the gui thread, which happens to be the main thread of your game. This means that when you're done dragging, the delay between the frames (and therefore 'dt') is huge, probably causing the spike in score you're witnessing. Unfortunately there's no real solution for this, except for limiting the dt value used if it's extremely large.
Re: Problem with love.mousepressed/released and bordered win
Hm, well regardless of whether there's no solution at least you've provided me some insight into this so I didn't just feel like I was overlooking something obvious.bartbes wrote:Yeah, this is an annoying one. Windows is acting weird, and whenever you drag a window, it pauses the gui thread, which happens to be the main thread of your game. This means that when you're done dragging, the delay between the frames (and therefore 'dt') is huge, probably causing the spike in score you're witnessing. Unfortunately there's no real solution for this, except for limiting the dt value used if it's extremely large.
Maybe another user will have some sort of cheap fix for this. I may try limiting dt as you've mentioned or removing it from the equation altogether to see if that fixes it, or I'll just be forced to use t.window.borderless = true. Otherwise I suppose I could look into implementing the application into a web page if the window is going to be static anyways.
Thanks for the reply!
- Ranguna259
- Party member
- Posts: 911
- Joined: Tue Jun 18, 2013 10:58 pm
- Location: I'm right next to you
Re: Problem with love.mousepressed/released and bordered win
Your little program is really cool, keep it up
Re: Problem with love.mousepressed/released and bordered win
Thank you very much for the encouragement! I'm completely new to this so I'm discovering things constantly along the way and it's actually been really fun to see my concept 'come to life.' Scripting has to be one of the more rewarding pass times I've engaged in recently.Ranguna259 wrote:Your little program is really cool, keep it up
I've already been working on tweaking the app more and have some bold plans for it as I learn more so if you'd like I'll send you updates via PM or something. It's nothing I plan to commercialize obviously but it will serve as a stepping stone for me and I can always elaborate on the concept. I didn't really originally plan to post it to the LOVE forums, but if it progresses maybe I'll create some sort of thread for its updates for fun.
I'm going to be looking into the window problem shortly and if I don't find a solution I'll simply remove the border or better yet attempt to make it web based.
- Ranguna259
- Party member
- Posts: 911
- Joined: Tue Jun 18, 2013 10:58 pm
- Location: I'm right next to you
Re: Problem with love.mousepressed/released and bordered win
No need for PMs, I'll patiently wait for a thread of your game
Best of luck.
Best of luck.
Who is online
Users browsing this forum: Google [Bot] and 6 guests