Skip to content

Commit

Permalink
Fixed two small errors that caused a slowdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
ILOVEPIE committed Oct 14, 2023
1 parent 8340f8b commit cc3d3e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderer-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1614,9 +1614,10 @@ const renderer_prototype = global.Object.create(Object, {
resultsForId[id].push(result[i]);
}
}
let moved = false;
let moved;
let count = 0;
do {
moved = false;
for (let i = 0; i < events.length; i++) {
if (result[i].width === 0 || result[i].height === 0)
continue;
Expand All @@ -1638,9 +1639,8 @@ const renderer_prototype = global.Object.create(Object, {
if (result[j].width === 0 || result[j].height === 0)
continue;
if (
events[j].getLineOverrides().getPosition() !==
null ||
events[j].getLineOverrides().getMovement() !== null
events[j].getLineOverrides().hasPosition() ||
events[j].getLineOverrides().hasMovement()
)
continue;
moved |= this._collideEvent(
Expand Down

0 comments on commit cc3d3e1

Please sign in to comment.