When I make a body go very fast (80-100 m/s) and then drag the window, the body instantly loses speed. The glitch occurs even when minimizing the window or just clicking on the title bar with the mouse.
The bug exists even at much lower speeds, the window needs to be grabbed with the mouse for a longer period of time.
When testing a 2d racing game, the loss of speed from the body occurs even without dragging the window. At high speeds (again 80-100 m/s or 250 km/h) the car randomly instantly loses 100 km/h of it's speed. The issue is bigger with additional apps being open (e.g. Chrome browser, video player).
function love.load() m = 10; love.physics.setMeter(m) world = love.physics.newWorld(0, 0, true) body = love.physics.newBody(world, 100, 300, "dynamic") shape = love.physics.newRectangleShape(5 * m, 2 * m) fixture = love.physics.newFixture(body, shape, 100) end function love.update(dt) world:update(dt) if love.keyboard.isDown("right") then body:applyForce(body:getMass() * 50 * m, 0) end end function love.draw() love.graphics.setLine(1, "smooth") love.graphics.polygon("line", body:getWorldPoints(shape:getPoints())) vx, vy = body:getLinearVelocity() love.graphics.print(string.format("%d %d", vx / m, vy / m), 0, 0) end