{"id":18269745,"url":"https://github.com/skyfe79/frameloop","last_synced_at":"2026-04-26T12:31:19.974Z","repository":{"id":229742408,"uuid":"777305087","full_name":"skyfe79/FrameLoop","owner":"skyfe79","description":"Synchronizing drawing operations with display refresh rates on macOS and iOS.","archived":false,"fork":false,"pushed_at":"2024-03-26T03:39:34.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T03:15:42.317Z","etag":null,"topics":["ios","macos","swift"],"latest_commit_sha":null,"homepage":"https://github.com/skyfe79/FrameLoop","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skyfe79.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-25T15:46:22.000Z","updated_at":"2024-03-27T10:37:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"18e93282-d47a-4a24-bfe3-33bedb2a4aa1","html_url":"https://github.com/skyfe79/FrameLoop","commit_stats":null,"previous_names":["skyfe79/frameloop"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/skyfe79/FrameLoop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FFrameLoop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FFrameLoop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FFrameLoop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FFrameLoop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyfe79","download_url":"https://codeload.github.com/skyfe79/FrameLoop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FFrameLoop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","macos","swift"],"created_at":"2024-11-05T11:37:02.136Z","updated_at":"2026-04-26T12:31:19.957Z","avatar_url":"https://github.com/skyfe79.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FrameLoop\n\nFrameLoop is a Swift package designed to synchronize drawing operations with the refresh rate of the display on both macOS and iOS platforms. It provides a simple API to manage frame update callbacks, allowing for smooth and efficient rendering in your applications.\n\n## Features\n\n- **Cross-Platform**: Works on both macOS and iOS.\n- **Easy to Use**: Simplified API for managing frame updates.\n- **Efficient**: Optimizes rendering to match the display's refresh rate.\n\n## Installation\n\nTo integrate FrameLoop into your Swift package, add it as a dependency in your `Package.swift` file:\n\n```swift:Package.swift\ndependencies: [\n    .package(url: \"https://github.com/skyfe79/FrameLoop.git\", from: \"0.0.2\")\n]\n```\n\n## Usage\n\n### Initializing FrameLoop\n\nCreate an instance of `FrameLoop` by providing a frame update callback. This callback receives the frames per second (fps) and delta time between frames.\n\n```swift\nlet frameLoop = FrameLoop { fps, deltaTime in\n    // Handle frame update\n}\n```\n\n### Starting and Stopping the Frame Loop\n\nTo start receiving frame updates, call `start()` on your `FrameLoop` instance. To stop, call `stop()`.\n\n```swift\nframeLoop.start()\n\n// When you want to stop receiving updates\nframeLoop.stop()\n```\n\n### Checking if Frame Loop is Running\n\nYou can check if the frame loop is currently running by accessing the `isRunning` property.\n\n```swift\nif frameLoop.isRunning {\n  print(\"Frame loop is currently running.\")\n} else {\n  print(\"Frame loop is not running.\")\n}\n```\n\n### Adjusting Frame Rate\n\nYou can adjust the preferred frames per second (FPS) for the display link:\n\n```swift\nframeLoop.preferredFramesPerSecond = 30\n```\n\n\n## License\n\nFrameLoop is released under the MIT license. See [LICENSE](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyfe79%2Fframeloop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyfe79%2Fframeloop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyfe79%2Fframeloop/lists"}