Search found 52 matches

by knuxyl
Fri Jul 07, 2023 9:08 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 730327

Re: Simple Tiled Implementation - STI v1.2.3.0

I am trying to migrate from Godot because of its terrible pixel accuracy. I am trying to use STI but I'm having trouble. I need a way to draw the map at a specific position while also scaling the map. The problem is, the scale argument also scales the position, which throws everything off for me. I ...
by knuxyl
Sun Sep 25, 2022 4:25 pm
Forum: General
Topic: Plans for the future? (OpenGL being deprecated by Apple)
Replies: 4
Views: 3721

Re: Plans for the future? (OpenGL being deprecated by Apple)

If you want to use Rust, you don't need to stick with love - there are plenty of other frameworks and engines and libraries out there, some of which are inside Rust's ecosystem. As for graphics backends on Apple platforms, love 12 already has a working Metal backend alongside the existing OpenGL ba...
by knuxyl
Sun Sep 25, 2022 3:18 pm
Forum: General
Topic: Plans for the future? (OpenGL being deprecated by Apple)
Replies: 4
Views: 3721

Plans for the future? (OpenGL being deprecated by Apple)

Apple has halted development and progress on OpenGL drivers for their systems, providing it only as a legacy feature. Considering they dropped 32-bit support completely, it would be unreasonable to assume OpenGL won't eventually be dropped. It's not a guarantee, but Apple's intentions are to create ...
by knuxyl
Tue Aug 23, 2022 9:20 pm
Forum: Support and Development
Topic: Linux OpenGL stuttering when moving character (love attached)
Replies: 13
Views: 5419

Re: Linux OpenGL stuttering when moving character (love attached)

Well I tried setting this environment variable SDL_VIDEODRIVER=wayland and love loads without a window border/titlebar, and still stutters. It can't be the gpu because the same problem happens on AMD, Intel, and Nvidia gpus (wx 4100, p630, t1000) which are all very different gpus. I put FPS on scre...
by knuxyl
Tue Aug 23, 2022 7:44 pm
Forum: Support and Development
Topic: Linux OpenGL stuttering when moving character (love attached)
Replies: 13
Views: 5419

Re: Linux OpenGL stuttering when moving character (love attached)

It has to be the xwayland mutter setup, that's all that is different. I hope love2d devs plan on supporting wayland, that would more than likely fix this issue. love doesn't know about wayland versus x11 on its own. You can make sure you have a recent version of SDL and configure it to use Wayland ...
by knuxyl
Mon Aug 22, 2022 6:39 pm
Forum: Support and Development
Topic: Linux OpenGL stuttering when moving character (love attached)
Replies: 13
Views: 5419

Re: Linux OpenGL stuttering when moving character (love attached)

The artifacts you're seeing is probably because on right mouse click the window tries to fullscreen, so when you do alt+right click to move the window, the game is probably fighting between the window manager about what size it should be. The right click is only for testing, that won't be permanent...
by knuxyl
Mon Aug 22, 2022 6:21 pm
Forum: Support and Development
Topic: Linux OpenGL stuttering when moving character (love attached)
Replies: 13
Views: 5419

Re: Linux OpenGL stuttering when moving character (love attached)

I just tested on Windows, it is the linux installation that has the issue. It has to be the xwayland mutter setup, that's all that is different. I hope love2d devs plan on supporting wayland, that would more than likely fix this issue. Thanks for uploading the video, that verifies it's a wayland/xwa...
by knuxyl
Mon Aug 22, 2022 6:03 pm
Forum: Support and Development
Topic: Linux OpenGL stuttering when moving character (love attached)
Replies: 13
Views: 5419

Re: Linux OpenGL stuttering when moving character (love attached)

The .love file does not stutter on my X250 ThinkPad but it only has relatively low resolution. Linux Mint with Xfce Desktop. hmm. maybe it's the window manager mutter that gnome uses. it has x11 compatibility (xwayland) and i'm guessing the problem is there. what resolution does your laptop go to? ...
by knuxyl
Mon Aug 22, 2022 5:09 pm
Forum: Support and Development
Topic: Linux OpenGL stuttering when moving character (love attached)
Replies: 13
Views: 5419

Linux OpenGL stuttering when moving character (love attached)

This project supports all 16:9 resolutions, so there is a lot of scaling going on. I decided to separate all layers into canvases, such as player, hud, background, etc, to minimize the scaling ipc. For some reason though, while moving the character the game will stutter. I thought maybe it was a ope...
by knuxyl
Sun Aug 21, 2022 4:27 pm
Forum: Support and Development
Topic: Scaling with all true 16:9 resolutions with limited number of asset resolutions?
Replies: 1
Views: 1063

Re: Scaling with all true 16:9 resolutions with limited number of asset resolutions?

I found the problem, I was trying to set the coordinate scale factor by divding the wrong values. The problem only came up when implementing offset in the draw function to make the character flip, so I was focused on that.

CANVAS.coordScale = CANVAS.resolution.h / RESOLUTIONS[1] (2160)