asamy / forgottenmapeditor

Map editor written in lua for Open Tibia. Written with OtClient's framework.
Other
46 stars 20 forks source link

Bug - fast mapping #40

Closed tosty33 closed 10 years ago

tosty33 commented 10 years ago

Hello, This is what I get when I try to create straight line by moving the mouse quickly: abc Reason? I don't know, maybe too many functions are called. Also when I do it, I get about 80-100% core usage, so I think that something needs to be optimized.

TheSumm commented 10 years ago

It is done like this: g_mouse.bindAutoPress(mapWidget, handleMousePress, 50, MouseLeftButton)

It needs to be optimized.

asamy commented 10 years ago

This works perfectly fine for me. I don't get the bug here, is it the white thing or that it did not render everything in the line? Are you sure that your left mouse button isn't a little bugged?

Dark199 commented 10 years ago

I've had the same thing happen to me. It is most likely a cpu / memory usage issue.

asamy commented 10 years ago

It happens to me too because I accidentally release the mouse button.

Dark199 commented 10 years ago

I can assure you it is not accidentally releasing the mouse button.

asamy commented 10 years ago

Okay, as Summ stated:

g_mouse.bindAutoPress(mapWidget, handleMousePress, 50, MouseLeftButton)

The 50 parameter is the delay, you guys might want to make it 10 and check if it goes fine for you that way. If so, you should thank @dalkon for this.

asamy commented 10 years ago

g_mouse.bindAutoPress needs to be re-written, so i'm closing this.