Search found 75 matches

by utunnels
Tue Jan 31, 2012 12:28 am
Forum: Support and Development
Topic: LöveJIT + 0.8.0 + windows?
Replies: 21
Views: 10580

Re: LöveJIT + 0.8.0 + windows?

I wonder if dynamic linking can cause some sort of slowdown. The code was something like: blahblah... for i=0,somewidth-1 do for j=0,someheight-1 do local r,g,b,a=someimage:getPixel(i,j) if a~=0 then somecounter=somecounter+1 end end end return somecounter I know I need to do some optimization, but ...
by utunnels
Mon Jan 30, 2012 3:02 pm
Forum: Support and Development
Topic: LöveJIT + 0.8.0 + windows?
Replies: 21
Views: 10580

Re: LöveJIT + 0.8.0 + windows?

This was built a week or so ago: http://dl.dropbox.com/u/4214717/LoveJIT-0.8.0-win32.zip I'm sorry to hijack this thread. But it seems this build script runs slower than 0.7.2 on my PC. I mean, I used to have some nasty loops that checks hundreds to thousands of pixels per loop (I set fps to around...
by utunnels
Mon Jan 30, 2012 12:20 am
Forum: Support and Development
Topic: ImageData and Image
Replies: 2
Views: 1185

Re: ImageData and Image

Thank you. I'll check that. There will be too many objects later on so I don't know if it is practicable to create associated shapes, but this should be a good backup plan if I encounter any frame rate issue.
by utunnels
Sun Jan 29, 2012 7:24 am
Forum: Support and Development
Topic: ImageData and Image
Replies: 2
Views: 1185

ImageData and Image

I'm making an RPG which can use mouse to pick up items or talk to certain NPC. And since some objects are not always square shape, I need to get the pixel where the mouse is now at. Now I'm storing ImageData as well as Image for every frame. But that no doubt doubles the memory usage (or even worse,...
by utunnels
Sun Jan 29, 2012 4:25 am
Forum: Libraries and Tools
Topic: love-loader: load resources in a separate thread, easily
Replies: 47
Views: 50971

Re: love-loader: load resources in a separate thread, easily

Ah great. I had been considering a resource loader but got stuck because it told me the model love.graphics was not available. I wonder how it gets done (I'm still new to lua). But wouldn't the game still need to wait for the second thread the load the image before it can access it in the first thre...