Search found 30 matches
- Sun Jun 23, 2024 8:23 pm
- Forum: Support and Development
- Topic: speed
- Replies: 47
- Views: 11459
Re: speed
NICE! How does this even work tho? " renderFunc = require("Render") renderFunc(pixel) " Isnt renderFunc already defined as including "Render". require() returns whatever the loaded file returns. renderFunc is the result returned by the included file "Render"....
- Sun Jun 23, 2024 6:50 pm
- Forum: Support and Development
- Topic: speed
- Replies: 47
- Views: 11459
Re: speed
Ahhhhhhhh. So Is the code just repeatedly asking the cpu, to ask the gpu to draw a pixel, Over and over again? If so I get why its going so slow. Yes, Cross platform is what I am going for. Ok Ok. So. Thats why. That makes me wonder, why is turbowarp so fast at drawing then? Does it use gpu acellar...
- Sun Jun 23, 2024 6:45 pm
- Forum: Support and Development
- Topic: speed
- Replies: 47
- Views: 11459
Re: speed
So you don't want to use the GPU to draw your geometry, but you want to write an software rasterizer? Then you should use the FFI approach Something like this. It's just a mockup -- you could use byteData instead, if you don't need to render it depthBufferData = love.image.newImageData( width, heig...
- Sun Jun 23, 2024 6:34 pm
- Forum: Support and Development
- Topic: speed
- Replies: 47
- Views: 11459
Re: speed
So you don't want to use the GPU to draw your geometry, but you want to write an software rasterizer? Then you should use the FFI approach Something like this. It's just a mockup -- you could use byteData instead, if you don't need to render it depthBufferData = love.image.newImageData( width, heig...
- Sun Jun 23, 2024 5:55 pm
- Forum: Support and Development
- Topic: speed
- Replies: 47
- Views: 11459
- Sun Jun 23, 2024 5:46 pm
- Forum: Support and Development
- Topic: speed
- Replies: 47
- Views: 11459
Re: speed
I'm sorry, but I still don't understand what you're trying to achieve. Do you want to write a software renderer, where you can draw per pixel to a framebuffer? If yes, you should try the FFI approach someone posted earlier. With the GPU, you usually don't draw per pixel stuff, but polygons or sprit...
- Sun Jun 23, 2024 5:12 pm
- Forum: Support and Development
- Topic: speed
- Replies: 47
- Views: 11459
Re: speed
It appears that you missed my post. Graphically speaking, Love2D could be defined as a fancy wrapper around OpenGL using Lua. The important takeaway of that definition is that if you use Löve, you have to play by the rules of using the GPU. In particular, if you're rendering pixel by pixel and not ...
- Sun Jun 23, 2024 4:11 pm
- Forum: Support and Development
- Topic: speed
- Replies: 47
- Views: 11459
Re: speed
Thats the thing, I dont know what im doing wrong either. Thats why im saying lua confuses me. Unless the code im calling isnt running at real time, which is possible. But How am i supposed to get around that? Its only running 6400 lines a second so it must be doing it at non real time. Without post...
- Sun Jun 23, 2024 3:07 pm
- Forum: Support and Development
- Topic: speed
- Replies: 47
- Views: 11459
Re: speed
It is much more difficult, @UnixRoot is right. In what (existing) language are you going to write it, anyway? Not if the language you were using was confusing you. Which, right now, lua is kinda confusing me. Love2d is fine, but lua's framework confuses me. like how does lua render slower then scra...
- Sun Jun 23, 2024 3:07 pm
- Forum: Support and Development
- Topic: speed
- Replies: 47
- Views: 11459
Re: speed
It is much more difficult, @UnixRoot is right. In what (existing) language are you going to write it, anyway? Not if the language you were using was confusing you. Which, right now, lua is kinda confusing me. Love2d is fine, but lua's framework confuses me. like how does lua render slower then scra...