Title: SDL_GetKeyboardState called every frame · Issue #69 · gameprogcpp/code · GitHub
Open Graph Title: SDL_GetKeyboardState called every frame · Issue #69 · gameprogcpp/code
X Title: SDL_GetKeyboardState called every frame · Issue #69 · gameprogcpp/code
Description: Very minor detail. The SDL documentation states the following: "The pointer returned is a pointer to an internal SDL array. It will be valid for the whole lifetime of the application and should not be freed by the caller." https://wiki.l...
Open Graph Description: Very minor detail. The SDL documentation states the following: "The pointer returned is a pointer to an internal SDL array. It will be valid for the whole lifetime of the application and should not...
X Description: Very minor detail. The SDL documentation states the following: "The pointer returned is a pointer to an internal SDL array. It will be valid for the whole lifetime of the application and shoul...
Opengraph URL: https://github.com/gameprogcpp/code/issues/69
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SDL_GetKeyboardState called every frame","articleBody":"Very minor detail.\r\n\r\nThe SDL documentation states the following: \"The pointer returned is a pointer to an internal SDL array. It will be valid for the whole \r\nlifetime of the application and should not be freed by the caller.\"\r\nhttps://wiki.libsdl.org/SDL2/SDL_GetKeyboardState\r\n\r\nThis is very common as most SDL tutorials seem to want to call it every iteration of the game-loop, so the idea of having to constantly call it keeps getting propagated into every single SDL tutorial. If the SDL team decides to perform some more work in this function, I bet a whole bunch of SDL based applications would feel a performance hit.","author":{"url":"https://github.com/nickenchev","@type":"Person","name":"nickenchev"},"datePublished":"2024-07-10T06:49:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/69/code/issues/69"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9205ae7f-735e-776a-64b8-0f4fbcaae78c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBD6:34359D:11C1455:18EE86F:696A39D6 |
| html-safe-nonce | 93a3fb2995ef3fdcde26650cc5b64b628a3e7245bc7dcca2f86fac3071d123ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkQ2OjM0MzU5RDoxMUMxNDU1OjE4RUU4NkY6Njk2QTM5RDYiLCJ2aXNpdG9yX2lkIjoiNzQ4OTQwNjA2Mzc2NTc2NDU2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 51eeaf13d24e2d30256e8564b6fb30626391e7a7672e9d4d01e784ea06a502bb |
| hovercard-subject-tag | issue:2399902006 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gameprogcpp/code/69/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a687414c6b5a4dfebdfc454cad9ac4b81d583cf0f6bf5dfcc7e8e67df088a7d5/gameprogcpp/code/issues/69 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a687414c6b5a4dfebdfc454cad9ac4b81d583cf0f6bf5dfcc7e8e67df088a7d5/gameprogcpp/code/issues/69 |
| og:image:alt | Very minor detail. The SDL documentation states the following: "The pointer returned is a pointer to an internal SDL array. It will be valid for the whole lifetime of the application and should not... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nickenchev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| turbo-cache-control | no-preview |
| go-import | github.com/gameprogcpp/code git https://github.com/gameprogcpp/code.git |
| octolytics-dimension-user_id | 33610484 |
| octolytics-dimension-user_login | gameprogcpp |
| octolytics-dimension-repository_id | 110481501 |
| octolytics-dimension-repository_nwo | gameprogcpp/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 110481501 |
| octolytics-dimension-repository_network_root_nwo | gameprogcpp/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width