keid-core-0.1.9.0: Core parts of Keid engine.
Safe HaskellSafe-Inferred
LanguageGHC2021

Engine.DataRecycler

Documentation

data DataRecycler a Source #

Constructors

DataRecycler 

Fields

  • drDump :: DumpResource a

    Filled with resources which aren't destroyed after finishing a frame, but instead are used by another frame which executes after that one is retired, (taken from ghRecycleOut)

    Make sure not to pass any resources which were created with a frame-only scope however!

  • drWait :: WaitResource a

    The resources of prior frames waiting to be taken

type DumpResource a = a -> IO () Source #

type WaitResource a = IO (Either (IO a) a) Source #