Basically because the game engine/the game doesn't run at a fixed tick rate, or frame rate the game logic (movement,event processing,input processing, etc) will run at whatever FPS you are running it at. So if you have a 144hz monitor, the game will run at 2-4 times the speed of a normal game, and everything will be faster, not just movement. That may seem like its not so bad till you get to where EVERYTHING runs faster, so all your events that you have made too run at a specific "Time" and such also don't execute at the speed you'd like them too because of someones faster computer, which can inherently ruin your game for them. I don't think this is the original thread, but the introduction to this plugin explains it more: http://forums.rpgmakerweb.com/index.php?/topic/50709-fluidtimestep-fix-the-game-speed/?hl=144hz
RMMV JavaScript Unofficial Bugfix Snippets
JS Plugin Releases (RMMV)removed
Omg, this is a horrible bug, when you clean the cache, it never releases the webGL objects attached to the bitmaps, so memory leaks filled with webGL textures on VRAM...
ImageManager.clear = function() { this._cache = {}};It should be something like:
ImageManager.clear = function() { this._cache = {}};It should be something like:
Code:
ImageManager.clear = function() { for (var p in this._cache) { if (this._cache.hasOwnProperty(p) && this._cache[p] instanceof Bitmap) { if (this._cache[p].baseTexture) this._cache[p].baseTexture.destroy(); } } this._cache = {}};
thanks. Logged.
(removed)
no, I couldn't find it. But then Ace had a Cache.clear method that was also never called. The method is there to use if we ever want it for any reason.
(removed)
The point of the cache is to reduce loading times. By keeping everything in memory, the only delay is the very first time each resource is accessed. It would defeat the purpose of having a cache if you cleared it.
You either have memory issues (which is only an issue now that we're playing on mobile devices), or you have loading issues. It's a case of "choose one".
You either have memory issues (which is only an issue now that we're playing on mobile devices), or you have loading issues. It's a case of "choose one".
(removed)
I am not sure how you draw that conclusion from what I said. What I said was that the memory issues due to keeping everything in cache are only a problem now because we HAVE the ability to export to devices that have very low memory.
That says nothing at all about whether it's important or not. It says it wasn't important before because we couldn't do it before, which potentially explains why "keep everything in cache" was an acceptable solution in previous makers.
I have already stated, either in this thread or in another, that the ideal would be to keep track of how many times each resource is used, to update that when the resource is no longer used, and to remove it from cache when the use count hits zero. And that it would require a fairly significant rewrite of the engine because there is currently no updating of resource counts when a scene is closed or a resource is "let go", as well as the added complexities due to resources being copied or cloned rather than just used straight out of cache.
I wouldn't do it via ImageManager.clear() though, as I don't believe fixing one problem by causing another is an acceptable trade-off.
So some time ago I already said what you said - that the way it's handled is not good for mobile devices. Please stop putting words in my mouth. What you said is just not true.
(removed)
If you read through the threads here, you will find there are many more complaints about delays due to loading-on-demand than there are about crashes due to memory overflow.
You've given me an idea, but this probably isn't the thread to talk about it. Let me see what I can do ...
You've given me an idea, but this probably isn't the thread to talk about it. Let me see what I can do ...
I have written about this somewhere else in October, but TL;DR is that you need to to one of the following, reduce the cache (or clear it) or decouple the prototype chain of unused objects in memory so that it will be picked up by the garbage collector.
I would be happy to assist since this is something i normally do in my day job 😉
I would be happy to assist since this is something i normally do in my day job 😉
I dont know if this is important,but a Japanese scripter has done a patch for fix the memory leak issue. But i dont have permission for post it.
Can you post the scripter page link or a place from where to see and download it?
Excuse me for my late reply,i was using my cellphone. Just remember to give credits to the scripter:
// : http://liply.net/
// [Twitter]: https://twitter.com/liplynet/
// [GitHub] https://github.com/liply/:
// : http://liply.net/
// [Twitter]: https://twitter.com/liplynet/
// [GitHub] https://github.com/liply/:
When the maker tries to draw a bitmap using float values for bitmap coordinates the bitmap suffer an unwanted anti-alias.
This can be a hinder for those wanting to create a pixelated visual.
Here a fix I've made for that: https://drive.google.com/open?id=0B0cSp2lASM9wamw0STNORm9Fc0k
This can be a hinder for those wanting to create a pixelated visual.
Here a fix I've made for that: https://drive.google.com/open?id=0B0cSp2lASM9wamw0STNORm9Fc0k
removed
Actors acting randomly will ALWAYS target enemy/actor #1. Always always always. When enemy #1 is dead, they will always target enemy #2, and so on down the line. They will not actually hit random targets. Here's the fix:
Game_Action.prototype.decideRandomTarget = function() {
var target;
if (this.isForDeadFriend()) {
target = this.friendsUnit().randomDeadTarget();
} else if (this.isForFriend()) {
target = this.friendsUnit().randomTarget();
} else {
target = this.opponentsUnit().randomTarget();
}
if (target) {
this._targetIndex = target.index();
} else {
this.clear();
}
};
The difference with the default functions? No () after "target.index". That's not a property; it's a function!
Game_Action.prototype.decideRandomTarget = function() {
var target;
if (this.isForDeadFriend()) {
target = this.friendsUnit().randomDeadTarget();
} else if (this.isForFriend()) {
target = this.friendsUnit().randomTarget();
} else {
target = this.opponentsUnit().randomTarget();
}
if (target) {
this._targetIndex = target.index();
} else {
this.clear();
}
};
Code:
Game_Action.prototype.evaluate = function() {
var value = 0;
this.itemTargetCandidates().forEach(function(target) {
var targetValue = this.evaluateWithTarget(target);
if (this.isForAll()) {
value += targetValue;
} else if (targetValue > value) {
value = targetValue;
this._targetIndex = target.index();
}
}, this);
value *= this.numRepeats();
if (value > 0) {
value += Math.random();
}
return value;
};
The difference with the default functions? No () after "target.index". That's not a property; it's a function!
Original thread: https://forums.rpgmakerweb.com/threads/rmmv-javascript-unofficial-bugfix-snippets.46351/