feat: Scale renderer (PSVita like) #2

Merged
Creepereater201 merged 11 commits from Jab125/L4JAddons:vitascale into main 2026-10-12 16:22:02 -05:00
Owner
No description provided.
@ -0,0 +3,4 @@
import net.minecraft.client.gui.GuiGraphicsExtractor;
public class VitaScale {
public static void extractRenderState(GuiGraphicsExtractor extractor) {}

wip?

wip?
Author
Owner

There's supposed to be an event here

There's supposed to be an event here
@ -0,0 +32,4 @@
private @Unique RenderTarget scaledRenderTarget;
@WrapOperation(method = "renderFrame", at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/pipeline/RenderTarget;blitToScreen()V"))
void renderFrame(RenderTarget instance, Operation<Void> original) {

method currently replaces the vanilla blit unconditionally - the check on l38 only checks if the render target exists, not whether the option is enabled

method currently replaces the vanilla blit unconditionally - the check on l38 only checks if the render target exists, not whether the option is enabled
@ -0,0 +16,4 @@
@Expression("this.overrideWidth = ?")
@WrapOperation(method = "@LFourJAddons:OptionsLFourJInit", at = @At("MIXINEXTRAS:EXPRESSION"))
private void init(Options instance, int value, Operation<Void> original) {
original.call(instance, L4JAddonsConfig.isEnabled(Tweak.VITA_SCALE) ? 960 : value);

toggling Vita Scale in the menu won’t update overrideWidth/overrideHeight or refresh the current window, is a full restart intended ?

toggling Vita Scale in the menu won’t update overrideWidth/overrideHeight or refresh the current window, is a full restart intended ?
Author
Owner

Not intentional

Not intentional
@ -7,2 +7,3 @@
"authors": [
"creepereater201"
"creepereater201",
"Jabe125"

jabe125

jabe125
Creepereater201 changed title from WIP: feat: Scale renderer (PSVita like) to feat: Scale renderer (PSVita like) 2026-10-12 16:21:47 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Lasting-Legacy/L4JAddons!2
No description provided.