Max Resolution Breaker

I see.Thanks for the information.
That would be cool.

It also crashes in battles when you kill an enemy(but maybe it's just me.)

It would be great to have higher resolution even to just have HD facesets and busts....

My character designer's illustrations lose half of their magic when resized...

Do you think that if people worked on this they could make it 100% possible to use?
I can't see why it wouldn't be feasible to achieve.

Realistically all you would need is a memory editor that would give you the memory values. I imagine you could also simplify the process involved by making your screen have an odd resolution within the normal limits accepted by the engine, this would then let you search what memory locations have been updated to those values by the engine when deca new screen size. This would likely work better than trying to find locations as multiples of tiles or the like.

There is definitely a bit of trial and error involved but it could perhaps be overcome if somebody was persistent enough.

EDIT - Also no idea why you're seeing crashes after battles. Haven't had that issue myself.
It also crashes in battles when you kill an enemy(but maybe it's just me.)
I had the same issue.

Then I removed the line with @ox = ox % w and now the game is not crashing when killing an enemy. But I don't know what the line was good for.
Working further with this script have made the following discovery:

if you open spriteset_map in scripts and reverse the order of tilemap and parallax in the intiialize call you will fix the weird clipping error. Since effectively it is drawing them in the wrong display order.

UPDATED INITIALIZE FUNCTION:

#-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize create_viewports create_parallax create_tilemap create_characters create_shadow create_weather create_pictures create_timer update endbut i do seem to be experiencing a weird clipping issue at the edge of the screen where it repeats. Will have to have a poke and see what can be done about it. Think it has to do with a modded value that shouldnt have been
I keep trying to use this script, but it ALWAYS crashes my game.exe and I can't get it to work. But it works on my friend's pc. Which I found odd?

So a few friends told me that it's a memory hack and it tends to be unstable. (Some of them had crazy tearing, etc.)
It is a memory hack as posted by Mike. 🙂
I've had this crash on my Desktop when I start a new game, quit to title, then try to load a save (and only when you do those exact things in that order). But it only seems to happen in my current project, not on a new one, and it doesn't happen at all on my laptop 

ლ(ಠ益ಠლ)
Well, to put it simply, it crashes because of different location of the memory (referring to memory management).

Different specs of computer, especially the OS type and RAM type, could alter how memory should be located.

The unknown scripter doesn't deal with any offset for memory reading purpose, but going straight to changing the value of those memory addresses, so it seems to me that RM stays constant with the memory locations (stable) and it's the different OS that gives different memory location (might lead to potential crash, and the scripter would need to get access to different OS to handle those memory location offsets - tedious work).

Yes, locating memory offsets can be a very tedious work. And even if you're able to locate them, it might only work with your spec of computer. : p

p.s. It is possible to memory hack the DirectX functions, and change it into the compatible OpenGL functions, making RM compatible for iOS, but it would be much less time consuming and more compatible to just create the appropriate DLL files. And this is the first time, I see how memory hex editing is being used to change the window frame instead of the usual (y'know, cheat on the game : p).
I've had this crash on my Desktop when I start a new game, quit to title, then try to load a save (and only when you do those exact things in that order). But it only seems to happen in my current project, not on a new one, and it doesn't happen at all on my laptop 

ლ(ಠ益ಠლ)
Found the source of this. It's not the memory fiddling in the resolution changes, it's FenixFyre's plane class: 

Code:
  alias :th_unlimited_resolution_initialize :initialize  def initialize(viewport = nil)    th_unlimited_resolution_initialize(viewport)    @sprite = Sprite.new(viewport)    @bitmap = nil    @ox = 0    @oy = 0  end
That new sprite never gets disposed. You can verify this by using Mithran's Graphical Object Global Reference script, loading into and out of Scene_Map a few times, then taking a look at the gobj.txt debug output in your game folder. Because of how this type of bug works, it won't crash immediately, but will periodically produce what appears to be random Game.exe crashes, based on whatever the rest of your game is doing (and presumably based on when Ruby's garbage collector kicks in?). Fortunately, this is easily fixed:

 

Code:
  alias :th_unlimited_resolution_dispose :dispose  def dispose    th_unlimited_resolution_dispose    @sprite.dispose if @sprite    @sprite = nil  end

Adding the above inside the Plane class should solve at least some of the crash issues. I haven't seen any more crashes in my project since fixing this.
@Kaelan - Great find! I've only been skimming this thread now and again and it was a bit disheartening when I saw people reporting Game.exe crashes, but I never even thought of checking out the add ons with my own debugger script. As an aside, that error (having a sprite with a viewport, disposing the viewport and not the sprite, transitioning, GC collects sprite) is exactly that kind of error that can and will produce Game.exe crashes. It is still a memory hack, and increasing the size of the screen beyond what was intended is definitely going to have some issues but if the base code is stable it does give some hope for usability.
I've added kaelan's observation to the script.
It is still a memory hack, and increasing the size of the screen beyond what was intended is definitely going to have some issues
Yeah. Recently the biggest problem I've been noticing is a significant performance drop at higher resolutions. I have a fairly good computer, and going up to 1280x960 makes even a trivial 40x30 map with nothing besides the player moving around go down from 60 to ~48FPS. On my real project with busier maps of the same size, it drops down to the 20~30FPS range, depending on how many events are on the map. It's still playable, but I imagine it wouldn't be on a worse computer.

I wonder if there's anything that can be done to improve this?
Even on a 640x480 resolution the best pc's start dropping in FPS on the larger and more complex maps. Even bigger resolutions is just not doable for a serious game.

There is a reason RPG Maker was limited to the 544 resolution. Probably because RM does not perform well itself. And there is not much we can do about it. I know that there are some methods that can be improved. But you need to start writing complex DLL files to fix that. And even then the performance gain will be minimal because the real performance issues are probably in the RM code which we are not allowed to touch nor even see. So you could optimize some bitmap handling and such but we can't touch the engine itself.

I happen to know this because someone is working on a script that uses a DLL file and he managed to greatly improve several 'core functions of Ace' through a DLL... Let's just say that I frown a lot on Ace when it comes to performance.

If you want it improved, we either need a new RM version that is more efficient and makes more use of the modern hardware or we need open source so we can rewrite the engine itself (not gonna happen).
If they distribute the DLL publicly that would be a great asset for RM.
I'm still playing around with this, but an addedum to the above, for anyone interested: Since at high resolutions the performance bottleneck is (by far) the map tile drawing, you actually get a significant performance gain if you use parallax mapping, as the engine doesn't have to spend as much time drawing tiles anymore. The fewer tiles you make it draw, the better.

On my computer, this takes a map that averaged 27 fps up to 41 fps. I'd say that's a pretty significant gain and something to keep in mind.
I'm still playing around with this, but an addedum to the above, for anyone interested: Since at high resolutions the performance bottleneck is (by far) the map tile drawing, you actually get a significant performance gain if you use parallax mapping, as the engine doesn't have to spend as much time drawing tiles anymore. The fewer tiles you make it draw, the better.

On my computer, this takes a map that averaged 27 fps up to 41 fps. I'd say that's a pretty significant gain and something to keep in mind.
Taking the Tilemap instance out of Spriteset_Map would be the best if using parallax mapping.
Oh, haha I hadn't even thought of doing that (which is silly given how I've edited a ton of other parts of Spriteset_Map and never noticed this). You're completely right though, that makes a huge difference. On my desktop, it nearly goes back up to 60. On my incredibly terrible laptop which runs normal maps at ~5-10, it goes back up to 30 (25 during combat, but hey, it's still playable which is really all I care about). That pretty much fixes all my performance problems.

The only issue with killing the tilemap is not being able to use the flash data. I've been using it since it's so much more efficient than using individual sprites to highlight tiles in an SRPG. Gonna have to try to find an alternate solution for that which still performs well with dozens of flashing tiles on screen.
This crashes every time I try and start up my game, but I was wondering can this be used in my commercial game? 
Be careful of using this in any game. I did notice that it causes weird bugs/crashes spread out across your project. Or even other scripts that start to fail and there is no real way to debug it. Even when you don't use this script and only include it in the project. That is my experience at least.
Be careful of using this in any game. I did notice that it causes weird bugs/crashes spread out across your project. Or even other scripts that start to fail and there is no real way to debug it. Even when you don't use this script and only include it in the project. That is my experience at least.
That bites, that really, really bites. The number 1 complaint about any game, not just RPG Maker is the poor resolution and limited graphical options and I really want to give better output and options since this is not 90's any more, we're living in 2014 and having maximum of 640x480 resolution is just plain absurd. I would dread what TotalBiscuit would say about any RPG Maker game since he usually gives all PC games bad flak when they have limited options in the first place.

Original thread: https://forums.rpgmakerweb.com/threads/max-resolution-breaker.19336/