Skip to content
View pmttavara's full-sized avatar

Block or report pmttavara

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. ph2 ph2 Public

    Psilent pHill 2

    C++ 28 1

  2. OpenGL-on-DXGI1.3 OpenGL-on-DXGI1.3 Public

    OpenGL on flip-model swapchains via WGL_NV_DX_interop2

    C 14

  3. Obtain RDTSC frequency on Win32 and ... Obtain RDTSC frequency on Win32 and Linux
    1
    // SPDX-FileCopyrightText: © 2022 Phillip Trudeau-Tavara <pmttavara@protonmail.com>
    2
    // SPDX-License-Identifier: 0BSD
    3
    
                  
    4
    // https://hero.handmade.network/forums/code-discussion/t/7485-queryperformancefrequency_returning_10mhz_bug/2
    5
    // https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/tlfs/timers#partition-reference-tsc-mechanism
  4. The definitive defer implementation ... The definitive defer implementation for C++. Syntax: defer { statements; };
    1
    #ifndef defer
    2
    struct defer_dummy {};
    3
    template <class F> struct deferrer { F f; ~deferrer() { f(); } };
    4
    template <class F> deferrer<F> operator*(defer_dummy, F f) { return {f}; }
    5
    #define DEFER_(LINE) zz_defer##LINE