File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 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' ;
Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments