Search found 19 matches
- Wed Mar 17, 2021 2:07 pm
- Forum: Support and Development
- Topic: OpenCL kernel or Shader to find in radius of X pixels around each pixels, highest and lowest greyscale value
- Replies: 2
- Views: 3618
Re: OpenCL kernel or Shader to find in radius of X pixels around each pixels, highest and lowest greyscale value
I managed to milk few MS with a preprocessor and #pragma unroll, but it "only" a 50% boost
- Wed Mar 17, 2021 1:12 pm
- Forum: Support and Development
- Topic: OpenCL kernel or Shader to find in radius of X pixels around each pixels, highest and lowest greyscale value
- Replies: 2
- Views: 3618
OpenCL kernel or Shader to find in radius of X pixels around each pixels, highest and lowest greyscale value
Hello. I'm working on a tool, in this tool I need to process images. I'll go straight to the point. For an image, i need to loop thru each pixels(1) and for all the other pixels(2) if distance pixel(1)->pixels(2) < radius then pick the lowest and the highest greyscale value. My image format is : gre...
- Sun Jun 28, 2015 7:33 pm
- Forum: Games and Creations
- Topic: [Abandonned project] Bank Boss/SafeTrade/Glove2D
- Replies: 3
- Views: 2444
Re: [Abandonned project] Bank Boss/SafeTrade/Glove2D
Thanks, but i was expecting more feedback :v
- Fri Jun 26, 2015 3:34 pm
- Forum: Games and Creations
- Topic: [Abandonned project] Bank Boss/SafeTrade/Glove2D
- Replies: 3
- Views: 2444
[Abandonned project] Bank Boss/SafeTrade/Glove2D
Greetings, i've been working on this project for 3-4 months. At the start i was working on porting Garry's Mod's Libs to Löve 2D (so it was called Glove 2D). At the start it was called Glove2D, then SafeTrade and at the end : Bank Boss And then we won the first prize of a Hackathon for a french bank...
- Tue Jun 09, 2015 11:52 am
- Forum: Support and Development
- Topic: Attack intervals?
- Replies: 8
- Views: 5543
Re: Attack intervals?
Or you can create a entire new file, for the timers, here is the timer lib, adapted from Gmod, pfhv timer = {} local PAUSED = -1 local STOPPED = 0 local RUNNING = 1 local timerList = {} local timerListSimple = {} local function createTimer( name ) if ( timerList[name] == nil ) then timerList[name] =...
- Mon Jun 08, 2015 2:18 pm
- Forum: Support and Development
- Topic: [SOLVED] One thread for update() and one for draw()
- Replies: 9
- Views: 4858
Re: One thread for update() and one for draw()
Darn.
Understood, thanks.
Understood, thanks.
- Mon Jun 08, 2015 2:11 pm
- Forum: Support and Development
- Topic: [SOLVED] One thread for update() and one for draw()
- Replies: 9
- Views: 4858
Re: One thread for update() and one for draw()
Oh ok, i get it. So i guess it would be better to keep the update() function on the default thread, and create a new one for draw() and it would be here i send the draw calls. Too bad no one tried to do that before erh. Thanks anyway. Edit : or maybe i should try to use OpenCL. Edit 2 : Wait, would ...
- Mon Jun 08, 2015 12:41 pm
- Forum: Support and Development
- Topic: Small Useful Functions
- Replies: 127
- Views: 53097
- Mon Jun 08, 2015 12:40 pm
- Forum: Support and Development
- Topic: Reacting to files being dragged over the game window.
- Replies: 6
- Views: 3582
Re: Reacting to files being dragged over the game window.
I guess you'll have to use LuaFFI, and find which function is used in the Windows API.
I found this.
May the force be with you.
I found this.
May the force be with you.
- Mon Jun 08, 2015 12:21 pm
- Forum: Support and Development
- Topic: [SOLVED] One thread for update() and one for draw()
- Replies: 9
- Views: 4858
[SOLVED] One thread for update() and one for draw()
Greetings, i'm wondering if there is a way to run love.draw() in a thread and love.update() in another thread. So basicaly don't touch the draw function, just move the update() one on a thread. So FPS would not be bound to update() and draw() but only draw(). I found this thread : https://love2d.org...