libretro / libretro/libretro-common

`retro_frame_time_callback_t` does not act like document

Open
#197 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
180
Forks
98
Avg merge
7h 16m
Merged PRs (30d)
1

Description

I'm writing a core with libretro and get a deadlock following the document/header file. After doing some trace I found retro_frame_time_callback_t is not called before first retro_run().

https://github.com/libretro/libretro-common/blob/2aab9683c541db49b3aca0ece66b5a7e545697b9/include/libretro.h#L2635

It will be called right before retro_run() every frame.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the callback contract in include/libretro.h at the linked line and compare it with the observed call sequence around the first retro_run(). Trace the initial frame lifecycle to identify where the documented timing diverges. Done means the implementation and documentation agree about when retro_frame_time_callback_t is called and the reported deadlock scenario is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.