Skip to content

Exedra64 1.3.0-beta

Pre-release
Pre-release

Choose a tag to compare

@murdoc820 murdoc820 released this 28 Nov 21:13
· 4 commits to main since this release

English

  • Overlay shows the game's real FPS. The HUD and OSD counted swapchain presents, inflated by frame repetition (a
    60 FPS cap on the 120 Hz panel presents each frame twice) and HyperFG synthetic frames, so a 60 FPS cap looked like
    ~120 and HyperFG on/off looked the same. They now count the game's own Present calls; with HyperFG a second line
    shows the presented rate.
  • HyperFG: hysteresis bypass. When the real frame rate stays slower than the threshold, frame generation turns fully
    off (no history copy, no compute), so HyperFG never costs more than leaving it off. It comes back below 85 % of the
    threshold.
  • Direct3D 9 (DmC): graphical glitches fixed. Static vertex/index buffer uploads no longer break the Vulkan render
    pass mid-frame; the draw reads from the upload ring and the device-local copy happens outside the pass.
  • 32-bit games: DmC now reaches gameplay. Windows-correct mutexes (owner + recursion; Bink deadlocked on the opening
    credits), TlsFree clears the slot for every thread (PhysX reused stale TLS objects), ExitThread really ends 32-bit
    threads, low (below 4 GB) memory gaps are found from /proc/self/maps and small Direct3D 9 allocations share pooled
    blocks (DmC ran out of low memory while loading a level), and a thread exiting no longer deadlocks JIT range updates.
    First speed-ups: per-function cached call data and direct native calls from translated 32-bit code (IAT and COM
    vtable calls). Still slow (about 4-15 FPS).
  • Overlay: FPS colours show playability, not distance to the cap. Green from 55 FPS, amber from 30, red only below 30
    (with a low cap such as 30 FPS, green near the cap). A game at 90 FPS with a 120 FPS cap is no longer shown in red.
  • Branding: the game start screen said "HYPERPLAY". It now shows the Exedra64 name like the rest of the app.
  • 32-bit games: controller input reaches the game (DmC opens its main menu). GetFocus now returns the game window for
    32-bit games; Unreal 3 only reads the keyboard and controller while its window has the focus.
  • Direct3D 9 renderer (Vulkan) for 32-bit games: DmC shows its title screen at about 60 FPS. New gfx/D3D9GpuRenderer:
    D3D9 textures (DXT/BC, 8/16-bit, float and depth formats with the D3D9 channel order), render targets with depth/stencil,
    vertex declarations, instancing, blend/depth/stencil/cull/scissor states, sampler states, Clear, StretchRect,
    ColorFill, UpdateTexture/UpdateSurface and Present through the existing Vulkan swapchain. Shaders use the
    new SM3 translator. Full D3D9 default render states.
  • Direct3D 9 shader translator (Shader Model 3 to SPIR-V). First piece of the Direct3D 9 renderer for 32-bit games:
    vs_3_0/ps_3_0 bytecode is translated to Vulkan SPIR-V (arithmetic, texture sampling, structured if/loop/break,
    emulated alpha test). All 40 DmC shaders seen so far translate and pass spirv-val. Shader bytecode with comment
    blocks is now copied correctly.
  • 32-bit games: DmC now runs its game loop (60 presents per second, no crashes). The JIT supports XLAT
    (the render thread died in msvcr100's x87 code). New GetProcessMemoryInfo (Unreal 3 calls it every frame; the
    arity-less stub shifted the stack and tripped a security-cookie check), GetComputerName, SetThreadIdealProcessor,
    SetThreadAffinityMask and IMM32 without an IME. Unimplemented system functions now pop their exact stdcall
    arguments. 32-bit critical sections keep OwningThread/RecursionCount and log the owner after 10 s of waiting.
  • JIT: MOVS/STOS now honor the direction flag (STD). Repeated string copies and fills always moved forward,
    so an overlapping memmove (MSVC copies backwards with STD; REP MOVSD) repeated the first element and wrote
    past the end of the buffer. In DmC this corrupted Wwise's memory pool right after the Direct3D 9 device was created.
    DmC now runs past that point and presents its first frame. New unit test; 64-bit games unchanged.
  • 32-bit games: pointer-size fixes in Windows synchronization and thread data. SLIST operations used the
    64-bit layout (they wrote 8 bytes into each 4-byte entry and past the 8-byte header), InitializeSRWLock wrote 8 bytes,
    TLS expansion slots stored a 64-bit pointer in the 32-bit TEB, and static TLS blocks of new threads were stored as
    64-bit pointers in a table of 4-byte entries. All now use the x86 layout. The 64-bit path is unchanged.
  • 32-bit games: Direct3D 9 device (stage 1, no drawing yet). IDirect3DDevice9 with all 119 methods and
    its resources (textures, cube/volume textures, surfaces, vertex/index buffers, shaders, declarations, queries,
    swap chain) in low memory with real Lock/Unlock memory; Present keeps a 60 Hz pace. DmC now creates
    its D3D9 device. Also for 32-bit games: window-message functions with 4-byte WPARAM/LPARAM (PostMessageW
    shifted the stack), a real ShowCursor counter, a per-thread message queue (PostThreadMessage/GetMessage
    no longer spin), PIX/cursor stubs with exact signatures. New diagnostics: write watch (debug.hyperplay.wwatch)
    and unmap watch (debug.hyperplay.uwatch).
  • 32-bit games: audio and input foundations (DmC). New DirectSound 8 over AAudio and 32-bit proxies for
    the WASAPI device objects (Wwise in DmC), and a minimal DirectInput 8 (keyboard/mouse devices without data;
    controllers keep using XInput). Fixed CoCreateInstance clearing 8 bytes of a 32-bit out-pointer (it
    overwrote the caller's saved frame pointer). DmC now passes audio and input setup; it needs a Direct3D 9
    renderer next (its Direct3D 11 path is disabled in the shipped executable).
  • DmC: the Unreal Engine 3 game now loads its packages and starts the engine (window, splash, shaders,
    PhysX, game packages).
    Unreal 3 games (32-bit) now see the real install layout: the .exe is presented
    as D:\Binaries\Win32\ and D:\ is the install root, so ..\..\ paths collapse like on Windows
    (before, packages were read from a wrong path and reported as "unrecognizable data"). The game is started
    with -dx11 (Direct3D 11 renderer, shipped SM5 shaders). Added: a query-only IDirect3D9 (GPU
    identification), SetCurrentDirectory/GetCurrentDirectory for 32-bit games, VC++ 2008 runtime calls
    served by the VC++ 2010 runtime, executable heaps (.NET stubs), WinINet without network, and exact
    signatures for CallNtPowerInformation, D3DXCheckVersion, ReadProcessMemory, console and
    debug-output functions. Not done yet: audio (Wwise needs WASAPI for 32-bit) and the Direct3D 11 renderer
    for 32-bit games.
  • 32-bit games (DmC): Steam is emulated for 32-bit games (steam_api.dll: Apps, User, Friends,
    Utils, UserStats, RemoteStorage saved in _HyperPlaySaves/steam_cloud). The 64-bit Steam emulation is
    unchanged. Added the x86 EMMS instruction and FileTimeToLocalFileTime/LocalFileTimeToFileTime.
  • Safety: games can no longer delete, move or replace files outside their own folder. Paths reached
    with ..\ (the Unreal install root) are read and create only; delete, rename and replace return
    "access denied".
  • DmC: the .NET runtime now starts completely and the Unreal engine runs until Steam initialization.
    Added: hardware exceptions for 32-bit games (vectored handlers + fs:[0] chain), WinRT IIDs
    (RoGetParameterizedTypeInstanceIID), Winsock without network, XInput/Winsock/OLEAUT32 imports by
    ordinal, PE resources (FindResource...), ordinal-only exports, .. paths up to the game root,
    file URLs (UrlCanonicalizeW), and the x86 instructions SAHF/LAHF. Fixed PUSH ESP/POP ESP,
    WaitForMultipleObjects and TerminateProcess in 32-bit games.
  • 32-bit games (DmC): the .NET Framework 4 runtime now starts. Windows x86 exception
    handling (the fs:[0] frame chain, RtlUnwind, NtContinue) is implemented, so C++ catch
    blocks work in 32-bit games. 32-bit memory (VirtualAlloc, MapViewOfFile) stays below 4 GB,
    pointer-sized out-parameters are written as 4 bytes, 64-bit arguments take two stack slots, and
    many missing Windows functions were added (security/SID, OLEAUT32 by ordinal, URL/path helpers,
    memory status, directories, PUSHAD/POPAD, RDTSC). DmC still stops while loading mscorlib.
  • Fixed: the window-message log wrote every message (a 400 MB log in Celeste); now only the first 50.

Español

  • El overlay muestra los FPS reales del juego. El HUD y el OSD contaban las presentaciones del swapchain, infladas
    por la repetición de frames (un tope de 60 FPS en el panel de 120 Hz presenta cada frame dos veces) y por los frames
    sintéticos de HyperFG: con tope 60 se veían ~120 y HyperFG encendido o apagado se veía igual. Ahora cuentan las
    llamadas Present del propio juego; con HyperFG una segunda línea muestra lo presentado.
  • HyperFG: bypass con histéresis. Si el ritmo real se mantiene más lento que el umbral, la generación se apaga del
    todo (sin copia al historial ni cómputo), así que HyperFG nunca cuesta más que tenerlo apagado. Vuelve bajo el 85 %
    del umbral.
  • Direct3D 9 (DmC): errores gráficos corregidos. Las subidas de búferes de vértices/índices estáticos ya no cortan el
    render pass de Vulkan a mitad de frame; el draw lee del anillo de subida y la copia a memoria de GPU se hace fuera del
    pase.
  • Juegos de 32 bits: DmC ya llega a la partida. Mutex como en Windows (dueño y recursión; Bink se bloqueaba en los créditos
    iniciales), TlsFree vacía la ranura en todos los hilos (PhysX reutilizaba objetos TLS viejos), ExitThread termina de verdad
    los hilos de 32 bits, los huecos de memoria por debajo de 4 GB se buscan en /proc/self/maps y las reservas pequeñas de
    Direct3D 9 comparten bloques (DmC se quedaba sin memoria baja al cargar un nivel), y un hilo que termina ya no bloquea al
    JIT. Primeras mejoras de velocidad: datos de llamada en caché por función y llamadas nativas directas desde el código
    traducido de 32 bits (IAT y vtables COM). Aún va lento (unos 4-15 FPS).
  • Overlay: los colores de FPS indican si el juego es jugable, no lo lejos que está del tope. Verde desde 55 FPS, ámbar
    desde 30 y rojo solo por debajo de 30 (con un tope bajo, como 30 FPS, verde cerca del tope). Un juego a 90 FPS con tope 120
    ya no sale en rojo.
  • Marca: la pantalla de inicio de un juego decía "HYPERPLAY". Ahora muestra el nombre Exedra64 como el resto de la app.
  • Juegos de 32 bits: el mando llega al juego (DmC abre su menú principal). GetFocus devuelve ahora la ventana del
    juego en 32 bits; Unreal 3 solo lee teclado y mando mientras su ventana tiene el foco.
  • Renderizador Direct3D 9 (Vulkan) para juegos de 32 bits: DmC muestra su pantalla de título a unos 60 FPS. Nuevo
    gfx/D3D9GpuRenderer: texturas D3D9 (DXT/BC, formatos de 8/16 bits, flotantes y de profundidad con el orden de canales de
    D3D9), render targets con profundidad/stencil, declaraciones de vértices, instancias, estados de mezcla/profundidad/stencil/
    culling/tijera, estados de sampler, Clear, StretchRect, ColorFill, UpdateTexture/UpdateSurface y Present
    por el swapchain Vulkan existente. Los shaders usan el nuevo traductor SM3. Estados por defecto de D3D9 completos.
  • Traductor de shaders Direct3D 9 (Shader Model 3 a SPIR-V). Primera pieza del renderizador Direct3D 9 para juegos de
    32 bits: el bytecode vs_3_0/ps_3_0 se traduce a SPIR-V de Vulkan (aritmética, muestreo de texturas, if/bucles/break
    estructurados, prueba alfa emulada). Los 40 shaders de DmC vistos hasta ahora se traducen y pasan spirv-val. El
    bytecode con bloques de comentario se copia ahora bien.
  • Juegos de 32 bits: DmC ya ejecuta su bucle de juego (60 Present por segundo, sin fallos). El JIT admite XLAT
    (el hilo de render moría en el código x87 de msvcr100). Nuevos GetProcessMemoryInfo (Unreal 3 lo llama cada
    fotograma; el stub sin aridad descuadraba la pila y saltaba la cookie de seguridad), GetComputerName,
    SetThreadIdealProcessor, SetThreadAffinityMask e IMM32 sin IME. Las funciones de sistema sin implementar sacan
    ahora sus argumentos stdcall exactos. Las secciones críticas de 32 bits mantienen OwningThread/RecursionCount y
    avisan del dueño tras 10 s de espera.
  • JIT: MOVS/STOS respetan ahora el flag de dirección (STD). Las copias y rellenos repetidos siempre avanzaban,
    así que un memmove solapado (MSVC copia hacia atrás con STD; REP MOVSD) repetía el primer elemento y escribía
    más allá del final del búfer. En DmC esto corrompía el montón de Wwise justo después de crear el dispositivo Direct3D 9.
    DmC ya pasa ese punto y presenta su primer fotograma. Prueba unitaria nueva; los juegos de 64 bits no cambian.
  • Juegos de 32 bits: tamaño de puntero en la sincronización de Windows y los datos por hilo. Las SLIST usaban el
    formato de 64 bits (escribían 8 bytes en cada entrada de 4 y más allá de la cabecera de 8), InitializeSRWLock
    escribía 8 bytes, las ranuras TLS de expansión guardaban un puntero de 64 bits en el TEB de 32 bits y los bloques TLS
    estáticos de los hilos nuevos se guardaban como punteros de 64 bits en una tabla de entradas de 4 bytes. Todo usa
    ahora el formato x86. La ruta de 64 bits no cambia.
  • Juegos de 32 bits: dispositivo Direct3D 9 (etapa 1, aún sin dibujar). IDirect3DDevice9 con sus 119 métodos
    y sus recursos (texturas, cubos/volúmenes, superficies, búferes de vértices/índices, shaders, declaraciones,
    consultas, cadena de intercambio) en memoria baja con memoria real en Lock/Unlock; Present mantiene
    60 Hz. DmC ya crea su dispositivo D3D9. Además, en 32 bits: funciones de mensajes de ventana con WPARAM/LPARAM
    de 4 bytes (PostMessageW desplazaba la pila), contador real de ShowCursor, cola de mensajes por hilo
    (PostThreadMessage/GetMessage ya no giran en vacío) y stubs de PIX/cursor con firma exacta. Nuevos
    diagnósticos: vigía de escrituras (debug.hyperplay.wwatch) y de liberaciones (debug.hyperplay.uwatch).
  • Juegos de 32 bits: base de audio y entrada (DmC). Nuevo DirectSound 8 sobre AAudio y proxies de 32 bits
    para los objetos de dispositivo WASAPI (Wwise en DmC), y un DirectInput 8 mínimo (teclado/ratón sin datos;
    los mandos siguen por XInput). Corregido CoCreateInstance, que borraba 8 bytes de un puntero de salida de
    32 bits (pisaba el puntero de marco guardado del llamador). DmC ya pasa la inicialización de audio y entrada;
    ahora necesita un renderizador Direct3D 9 (su ruta Direct3D 11 está desactivada en el ejecutable).
  • DmC: el juego de Unreal Engine 3 ya carga sus paquetes y arranca el motor (ventana, splash, shaders,
    PhysX, paquetes del juego).
    Los juegos de Unreal 3 (32 bits) ven ahora la estructura real de la instalación:
    el .exe aparece como D:\Binaries\Win32\ y D:\ es la raíz, así las rutas ..\..\ se resuelven como en
    Windows (antes los paquetes se leían de una ruta equivocada y daban "unrecognizable data"). El juego arranca
    con -dx11 (renderizador Direct3D 11, shaders SM5 incluidos). Añadido: IDirect3D9 de solo consulta
    (identificar la GPU), SetCurrentDirectory/GetCurrentDirectory en 32 bits, llamadas del runtime VC++ 2008
    atendidas por el de VC++ 2010, montones ejecutables (stubs de .NET), WinINet sin red y firmas exactas de
    CallNtPowerInformation, D3DXCheckVersion, ReadProcessMemory y funciones de consola y depuración.
    Falta: audio (Wwise necesita WASAPI de 32 bits) y el renderizador Direct3D 11 para juegos de 32 bits.
  • Juegos de 32 bits (DmC): Steam se emula en juegos de 32 bits (steam_api.dll: Apps, User, Friends,
    Utils, UserStats y RemoteStorage guardado en _HyperPlaySaves/steam_cloud). La emulación de Steam de 64
    bits no cambia. Añadidas la instrucción x86 EMMS y FileTimeToLocalFileTime/LocalFileTimeToFileTime.
  • Seguridad: los juegos ya no pueden borrar, mover ni reemplazar archivos fuera de su carpeta. Las rutas
    con ..\ (la raíz de la instalación de Unreal) son de solo lectura y creación; borrar, renombrar y
    reemplazar devuelven "acceso denegado".
  • DmC: el runtime de .NET ya arranca por completo y el motor Unreal se ejecuta hasta iniciar
    Steam. Añadido: excepciones de hardware en juegos de 32 bits (manejadores vectoriales + cadena
    fs:[0]), IID de WinRT (RoGetParameterizedTypeInstanceIID), Winsock sin red, importaciones por
    ordinal de XInput/Winsock/OLEAUT32, recursos PE (FindResource...), exportaciones solo por ordinal,
    rutas con .. hasta la raíz del juego, URL de archivo (UrlCanonicalizeW) y las instrucciones x86
    SAHF/LAHF. Corregidos PUSH ESP/POP ESP, WaitForMultipleObjects y TerminateProcess en
    juegos de 32 bits.
  • Juegos de 32 bits (DmC): el runtime de .NET Framework 4 ya arranca. Se implementa el manejo
    de excepciones de Windows x86 (cadena de marcos en fs:[0], RtlUnwind, NtContinue): los
    catch de C++ funcionan en juegos de 32 bits. La memoria de 32 bits (VirtualAlloc,
    MapViewOfFile) queda por debajo de 4 GB, los parámetros de salida de tamaño puntero se escriben
    con 4 bytes, los argumentos de 64 bits ocupan dos ranuras de pila y se añaden muchas funciones de
    Windows que faltaban (seguridad/SID, OLEAUT32 por ordinal, URL y rutas, estado de memoria,
    carpetas, PUSHAD/POPAD, RDTSC). DmC aún se para al cargar mscorlib.
  • Corregido: el registro de mensajes de ventana escribía cada mensaje (log de 400 MB en Celeste);
    ahora solo los 50 primeros.