René's URL Explorer Experiment


Title: Instantiate a custom amount of objects on startup to save even more performance by alfredbaudisch · Pull Request #1 · UnityPatterns/ObjectPool · GitHub

Open Graph Title: Instantiate a custom amount of objects on startup to save even more performance by alfredbaudisch · Pull Request #1 · UnityPatterns/ObjectPool

X Title: Instantiate a custom amount of objects on startup to save even more performance by alfredbaudisch · Pull Request #1 · UnityPatterns/ObjectPool

Description: With the actual code, if you have a fire rate that allows you to shoot let's say 100 bullets at a time, it will instantiate 100 game objects at runtime for the first shoots. Now if you have different pools running at once like bullets, explosions, coins, power ups, etc (like I have in my game, 7 pools) think about instantiating all these objects when the game is running the first time we need the objects, there is a noticeable frame rate and performance drop during the gameplay, specially in fast paced games. For that reason I improved the class to allow the pre-instantiation of a defined amount of objects at startup. For the Turrent demo, on startup 10 bullets and 10 explosions are added to the pool and recycled before we even need them, this way when we shoot, the pool will never create another object, since 10 is more than enough to the demo's fire rate. The magic is in the new CreatePool(T prefab, int initialAmount) and RecycleAll(T obj) methods. EDITED: CreatePool(T prefab, int initialAmount) now uses SpawnInactive instead of Spawn + RecycleAll.

Open Graph Description: With the actual code, if you have a fire rate that allows you to shoot let's say 100 bullets at a time, it will instantiate 100 game objects at runtime for the first shoots. Now if you have dif...

X Description: With the actual code, if you have a fire rate that allows you to shoot let's say 100 bullets at a time, it will instantiate 100 game objects at runtime for the first shoots. Now if you have...

Opengraph URL: https://github.com/UnityPatterns/ObjectPool/pull/1

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:863f4d05-bcbf-9ecc-f1e9-019f3cebbdc4
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idAE0A:134895:11C13C:17A09E:6982716E
html-safe-nonceefe5da70af15dfa883052dfee1d47c02c63ce6f40a0e610b1c05a4dc7b8e9548
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTBBOjEzNDg5NToxMUMxM0M6MTdBMDlFOjY5ODI3MTZFIiwidmlzaXRvcl9pZCI6Ijc5MjM5NTM3MTc4NTcxMjA2MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacda2933a9dbcd9f05daadd489decbb3dee656207bfbcd3e67af6b115a4592e1ae
hovercard-subject-tagpull_request:9821162
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/UnityPatterns/ObjectPool/pull/1/checks
twitter:imagehttps://avatars.githubusercontent.com/u/248383?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/248383?s=400&v=4
og:image:altWith the actual code, if you have a fire rate that allows you to shoot let's say 100 bullets at a time, it will instantiate 100 game objects at runtime for the first shoots. Now if you have dif...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned8cbbf00e6212b4e561a1d6db613194a319d58a2967494f7cc81cf6da3fbb985
turbo-cache-controlno-preview
go-importgithub.com/UnityPatterns/ObjectPool git https://github.com/UnityPatterns/ObjectPool.git
octolytics-dimension-user_id5545416
octolytics-dimension-user_loginUnityPatterns
octolytics-dimension-repository_id13115287
octolytics-dimension-repository_nwoUnityPatterns/ObjectPool
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id13115287
octolytics-dimension-repository_network_root_nwoUnityPatterns/ObjectPool
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release15d777483e72943a892af4ab5c0bbdb20215e6f3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pull/1/checks#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FUnityPatterns%2FObjectPool%2Fpull%2F1%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FUnityPatterns%2FObjectPool%2Fpull%2F1%2Fchecks
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=UnityPatterns%2FObjectPool
Reloadhttps://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pull/1/checks
Reloadhttps://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pull/1/checks
Reloadhttps://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pull/1/checks
UnityPatterns https://patch-diff.githubusercontent.com/UnityPatterns
ObjectPoolhttps://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FUnityPatterns%2FObjectPool
Fork 94 https://patch-diff.githubusercontent.com/login?return_to=%2FUnityPatterns%2FObjectPool
Star 423 https://patch-diff.githubusercontent.com/login?return_to=%2FUnityPatterns%2FObjectPool
Code https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool
Issues 1 https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/issues
Pull requests 4 https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pulls
Actions https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/actions
Projects 0 https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/projects
Wiki https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/wiki
Security 0 https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/security
Insights https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pulse
Code https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool
Issues https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/issues
Pull requests https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pulls
Actions https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/actions
Projects https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/projects
Wiki https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/wiki
Security https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/security
Insights https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2FUnityPatterns%2FObjectPool%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2FUnityPatterns%2FObjectPool%2Fissues%2Fnew%2Fchoose
alfredbaudischhttps://patch-diff.githubusercontent.com/alfredbaudisch
UnityPatterns:masterhttps://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/tree/master
alfredbaudisch:masterhttps://patch-diff.githubusercontent.com/alfredbaudisch/ObjectPool/tree/master
Conversation 1 https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pull/1
Commits 4 https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pull/1/commits
Checks 0 https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pull/1/checks
Files changed https://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pull/1/files
Please reload this pagehttps://patch-diff.githubusercontent.com/UnityPatterns/ObjectPool/pull/1/checks
Learn more about GitHub Actionshttps://docs.github.com/categories/automating-your-workflow-with-github-actions
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.