Yeah, the ImageData one has pure-Lua bitwise (Which I'm fairly sure involves strings *cringe*), which given an emulator is pretty much entirely bit crunching, is a huge speed loss.Nixola wrote:I don't support canvases too, but with the ImageData version I have no more than 6 FPS, so I don't mind if you don't update it
I Love Gameboy
-
- Prole
- Posts: 24
- Joined: Sat Sep 24, 2011 12:22 am
Re: I Love Gameboy
Re: I Love Gameboy
As i said. My ImageData fix has nothing to do with the bitwise compatibility fix for normal love (without JIT). Just take my version with a LoveJIT and it should run without speed problems.Technicolour wrote:Yeah, the ImageData one has pure-Lua bitwise (Which I'm fairly sure involves strings *cringe*), which given an emulator is pretty much entirely bit crunching, is a huge speed loss.Nixola wrote:I don't support canvases too, but with the ImageData version I have no more than 6 FPS, so I don't mind if you don't update it
Or just disable the following in the main.lua.
Code: Select all
bit = require 'numberlua'
band = bit.band
bor = bit.bor
bxor = bit.bxor
bshr = bit.rshift
bshl = bit.lshift
Re: I Love Gameboy
The problem is I get 6FPS with LoveJIT
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: I Love Gameboy
I get 83-33 fps with LoveJIT 0.7.2 and 15-8fps Love 0.72.
But nevertheless, just remove the bit thing.
But nevertheless, just remove the bit thing.
-
- Prole
- Posts: 24
- Joined: Sat Sep 24, 2011 12:22 am
Re: I Love Gameboy
The most recent version already uses native bitwise when in LuaJIT and Lua bitwise when not.
Re: I Love Gameboy
Thats what i said before and thats why i don't understand Nixola problem.
Re: I Love Gameboy
I forgot to write that I've a netbook...
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
-
- Prole
- Posts: 24
- Joined: Sat Sep 24, 2011 12:22 am
Re: I Love Gameboy
Yeah, the emulation code is fairly CPU hungry, it executes up to a million instructions and draws over 8000 scanlines a second. Sorry :CNixola wrote:I forgot to write that I've a netbook...
- Jasoco
- Inner party member
- Posts: 3726
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: I Love Gameboy
I'm so sorry. You have my condolences.Nixola wrote:I forgot to write that I've a netbook...
Who is online
Users browsing this forum: Bing [Bot] and 2 guests