out of memory& CPU

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
sura
Prole
Posts: 3
Joined: Tue Feb 03, 2015 9:59 am

out of memory& CPU

Post by sura »

Code: Select all

  for j=3,11,2 do
         for i=1,j do
           love.graphics.circle("line", startx+(i-1)*50-(j-3)*25, starty+25*((j-3)), circlerad, 50);
           love.graphics.print('A',startx-5+(i-1)*50-(j-3)*25,starty-5+25*((j-3)));
           love.graphics.print(resuslt,200,0);
         end
      end
those line in love.draw() method,1 minitute later ,CPUT&memory out of use
sura
Prole
Posts: 3
Joined: Tue Feb 03, 2015 9:59 am

Re: out of memory& CPU

Post by sura »

it s very confused me .
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: out of memory& CPU

Post by Jasoco »

Do you have any more code? There's nothing here that's unusual that I can find.
User avatar
norubal
Party member
Posts: 137
Joined: Tue Jan 15, 2013 5:55 am

Re: out of memory& CPU

Post by norubal »

It works fine on my computer, I need more information about startx, starty, circlerad, and resuslt value.
How about uploading your .love file to provide more information?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests