Search found 3 matches
- Thu Jul 28, 2016 9:56 pm
- Forum: Support and Development
- Topic: Why this simple code load cpu to 30%?
- Replies: 9
- Views: 3885
Re: Why this simple code load cpu to 30%?
With the given example, my CPU usage (of a single core) is at ~4% at the start and reaches ~10% when the counter reaches 25. CPU: Intel Core i3-2100 @ 3.10GHz GPU: nVidia GeForce 210, driver version: 340.96 Vsync is on? If not, enable vsync in conf.lua and try launch my code again. If i use vsync, ...
- Thu Jul 28, 2016 8:35 am
- Forum: Support and Development
- Topic: Why this simple code load cpu to 30%?
- Replies: 9
- Views: 3885
Re: Why this simple code load cpu to 30%?
Does it make any difference if you store news as a string instead of a table, and concatenate to it in love.update? What about the Text drawable, does that put less load on the CPU? Concatenate in love.update load CPU too. I don't want use drawable text. But, if previously add(print) long string in...
- Thu Jul 28, 2016 3:24 am
- Forum: Support and Development
- Topic: Why this simple code load cpu to 30%?
- Replies: 9
- Views: 3885
Why this simple code load cpu to 30%?
(sorry, i bad know english) function love.load() news = {} delay = 10 width = love.graphics.getWidth() end function love.update(dt) if delay > 0 then delay = delay - dt else table.insert(news, 1, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin in porta nunc. Donec condimentum po...