Skip to content

Commit 0ec4bb3

Browse files
author
liply
authored
Merge pull request #41 from rpgtkoolmv/debug-plugin
Debug plugin
2 parents 4bb07f1 + 71ba4d6 commit 0ec4bb3

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
1+
/*:
2+
* @plugindesc Show memory usage.
3+
* @author RM CoreScript team
4+
*
5+
* @help
6+
* This plugin shows memory related usages.
7+
* size: size in MPixel
8+
* totalCount: count of Bitmaps
9+
* requestCount: count of requested Bitmaps
10+
* reservedCount: count of reserved Bitmaps
11+
*
12+
* All number should be stable.
13+
* If you find that It increases gradually after reaching limit, Please report to team!!
14+
*
15+
* @param Max Pixels In MPix
16+
* @default 20
17+
*
18+
*/
19+
120
(function(){
21+
var parameters = PluginManager.parameters('Debug_ReportMemory');
22+
var pixels = +parameters['Max Pixels In MPix'] || 20;
23+
24+
ImageCache.limit = pixels * 1000 * 1000;
25+
226
var div = document.createElement('div');
327
div.style.backgroundColor = 'AliceBlue';
428
div.style.position = 'fixed';
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
/*:
2+
* @plugindesc Throttle loading images.
3+
* @author RM CoreScript team
4+
*
5+
* @help
6+
* This plugin throttle loading.
7+
* Loading image is delayed by Delay parameter(in ms)
8+
*
29
* @param Delay
310
* @default 2000
411
*/
512

613
(function(){
7-
var parameters = PluginManager.parameters('Atsumaru_Debug_ThrottleImage');
14+
var parameters = PluginManager.parameters('Debug_ThrottleImage');
815
var delay = +parameters['Delay'] || 2000;
916

1017
var Bitmap_prototype_onLoad = Bitmap.prototype._onLoad;

0 commit comments

Comments
 (0)