+ / - / 0 in play mode?

Found a bug in R'n'D? Report it here!

Moderators: Flumminator, Zomis

Post Reply
filbo
Posts: 197
Joined: Fri Jun 20, 2014 10:06 am

+ / - / 0 in play mode?

Post by filbo » Tue Feb 17, 2015 9:24 am

The new(*) + / - / 0 zoom keys in edit mode are great... [(*)Appeared in git a few days ago.]

... now can we have them in play mode? :)

I'd actually been considering asking for this some time ago (though I was only thinking of a toggle between the two settings of Settings -> Graphics -> Small Game Graphics).

I don't know if I would actually want to play in the most zoomed-out mode, but it would be awesome for watching some levels playback from a tape. And I suppose if I was playing on a 30" monitor instead of a 15" laptop, the next level of zoom would be fine.

Ideally, handle these keys any time they're seen in edit, play or playback modes.

BTW, I have my own uses for the keys '1'..'5', which I intend to describe at some point. I actually wrote the message but haven't posted it, and the machine it's sitting on is currently dormant...

User avatar
Holger
Site Admin
Posts: 2718
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Re: + / - / 0 in play mode?

Post by Holger » Mon Mar 02, 2015 10:55 pm

This really sounds like a good idea. Not sure about implementation at the moment -- especially dynamically during a game -- but I'll check this. There are currently some major issues that prevent R'n'D from totally redrawing the game screen each frame, which would most probably give a HUGE speed boost on most systems, as graphics drawing could then be managed within graphics memory, while it is now handled in system memory, followed by a final blit of the screen from system memory to the graphics hardware, which is slow, of course. I've already did some tests with the goal to re-implement those parts of the code needed for full screen redraw each frame, but so far some parts of R'n'D game graphics are drawn incremental over more than one frame, which currently prevents a full redraw each frame. If this would work some day, it would propably also be easy to change the tile size (zoom level) each frame.

Nevertheless, I will see if I can do some workarounds that would at least make this work, although it could result in (temporary, in most cases) graphical glitches when changing zoom level (due to the required redraw, although at least zooming *out* could probably done without glitches by graphically scaling down of the current playfield graphics, while zooming *in* would indeed require a redraw (because scaling up would look ugly).

Well, I'll try to have a closer look at this in the near future...

filbo
Posts: 197
Joined: Fri Jun 20, 2014 10:06 am

Re: + / - / 0 in play mode?

Post by filbo » Tue Mar 03, 2015 7:28 am

Sounds good, thanks...

I already have all sorts of speed anomalies that I'd like to describe, but are currently too vague.

Sometimes "warp forward" speed (fastest playback with drawing) is >100x realtime, sometimes it's less than 10x.

This can vary for the same tape of the same level -- I think depends on whether I was the first person to login on this multi-user laptop, like maybe :0 server gets more graphics memory or better access to the GPU or something.

Whatever it is with X or GPU, it isn't the only factor, just the one that has the largest effect.

AlexKotovPl
Posts: 1
Joined: Mon Aug 03, 2015 11:52 am

/ / 0 in play mode

Post by AlexKotovPl » Tue Aug 04, 2015 8:43 am

ShiftF8 Codepage is not working for me in Editor mode, only in Viewer mode. Any solution?

Joc

User avatar
Holger
Site Admin
Posts: 2718
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Re: + / - / 0 in play mode?

Post by Holger » Tue Aug 04, 2015 1:59 pm

Hello Joc,

what do you mean by "ShiftF8 Codepage is not working for me in Editor mode, only in Viewer mode"?

Can you please explain exactly what you're doing, and what you expect to happen?

That would help a lot in understanding what might went wrong in the case you described.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests