10-31-2010, 03:34 PM
(10-31-2010, 02:46 PM)Aredo Wrote: Here is a link for code changes which can improve the visual quality of jpcsp:Thanks for the proposal!
I've already investigated a similar approach to improve the 3D rendering when enlarging the Jpcsp window (e.g. fullscreen). I don't think disabling the viewport is the right solution. Some applications rely on a correct viewport settings to render only part of the screen. This is important for compatibility.
A better approach would be to scale the viewport coordinates according to the canvas coordinates. E.g. using setViewport(x * 2, y * 2, width * 2, height *2) when scaling the Jpcsp window by a factor 2. Of course, the factor has to follow the current window resizing.
Also, the mag filter could be forced automatically to bilinear when the texture has mipmaps and when the Jpcsp window was enlarged. I don't see a need to change the mag filter when the texture has no mipmaps or when the Jpcsp window has still the original PSP size.
Is there any need to change the min filter?
BTW, this will mainly improve the rendering of 3D applications, not 2D.