Skip to content

Adult titles

The games this site covers are adult titles. Their data, pictures and text include sexual content.

Continue only if you are an adult where you live.

0x252 set-present-clear

Opcode 0x252 (594), draw. Investigated by OME, with high confidence (from investigation).

(flags) — make the present workers clear the render target to black before they draw: bit 0 the frame render (op 0x20c and the engine's tick), bit 1 a range present (op 0x222).

Operands

#RoleTypes seenAccess
1flags: bit 0 = clear before a frame render, bit 1 = clear before a range presentimmread

In the port

OME’s port implements it. It never waits: a wait parks the engine until input, a sleep, a transition, a dialog or a movie ends. What it can do with control besides waiting:

  • falls: it returns to the next instruction

OME derives these facts from the port’s handler (its tools/opcode_flow.py), and they over-approximate: a fact some path can reach is given.

By build

Whether each build’s scripts use it, as OME’s survey of the game’s scripts saw them, and how many evidence items name the build.

BuildGameUsed by its scriptsEvidence
4.24J (SYS4422)Himegari Dungeon Meisterno—
4.33G (SYS4433)Kamidori Alchemy Meisterno—
4.38D (SYS4438)Soukoku no Arterialyes1

Evidence

  • native-re on SYS4438, high confidence; Arterial SYS4438 Ghidra /arterial/4.38D and the complete Arterial catalog (vm-map/opcodes.toml opcode 0x252): op_0x252_set_present_clear@0x4247f0 stores operand 1 at the graphics manager's +0xb55c (ctx+0x59e60), which the manager's constructor sets to 0 and nothing else writes. gfx_render_frame@0x49ab00 tests bit 0 and gfx_present_object_range@0x49adf0 bit 1; each then calls d3d_clear_render_target_black before it begins its scene, the call op 0x20e's handler makes. The only site in 創刻のアテリアル is SYSTEM4@0xa, with 3.

Details

OME’s notes on it, as the registry keeps them.

Without a flag a present draws over the pixels its target holds, and only op 0x20e clears. The port keeps the flags in the graphics native (Graphics.SetPresentClear) and clears as op 0x20e does, before each present of that kind.