René's URL Explorer Experiment


Title: ursina optimization · Issue #572 · Show-Me-the-Code/python · GitHub

Open Graph Title: ursina optimization · Issue #572 · Show-Me-the-Code/python

X Title: ursina optimization · Issue #572 · Show-Me-the-Code/python

Description: my code sucks and gives only 5-15 FPS max. I programing minecraft on ursina. pls help me here's the code: `from ursina import * from ursina.prefabs.first_person_controller import FirstPersonController from numpy import floor from perlin_...

Open Graph Description: my code sucks and gives only 5-15 FPS max. I programing minecraft on ursina. pls help me here's the code: `from ursina import * from ursina.prefabs.first_person_controller import FirstPersonControl...

X Description: my code sucks and gives only 5-15 FPS max. I programing minecraft on ursina. pls help me here's the code: `from ursina import * from ursina.prefabs.first_person_controller import FirstPersonCon...

Opengraph URL: https://github.com/Show-Me-the-Code/python/issues/572

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ursina optimization","articleBody":"my code sucks and gives only 5-15 FPS max. I programing minecraft on ursina. pls help me\n\nhere's the code:\n \n`from ursina import *\nfrom ursina.prefabs.first_person_controller import FirstPersonController\n\nfrom numpy import floor\nfrom perlin_noise import PerlinNoise\nimport matplotlib.pyplot as plt\nimport random\n\nnoise = PerlinNoise(octaves=3, seed=random.randint(1, 10000))\n\n\napp = Ursina(vsync=False)\n\nFPS = 120\n\nselected_block = \"grass\"\n\nblocks_texture = {\n   \"grass\" : load_texture('Textures/grassUV.png'),\n   \"dirt\": load_texture(\"Textures/groundMud1.png\"),\n   \"stone\": load_texture(\"Textures/wallStone1.png\"),\n   \"bedrock\": load_texture(\"Textures/bedrock.png\")\n\n}\n\nblocks = []\n\narm_texture = load_texture('Textures/arm1.png')\nsky_texture = load_texture('Textures/skybox.png')\n\n#sky = Entity(\n#           model = 'sphere', texture = sky_texture,\n#          scale = 1000, double_sided = True\n#       )\n\nplayer = FirstPersonController(\n  mouse_sensitivity=Vec2(100, 100),\n  position=(0, 10, 0),\n  )\n\n\nclass Voxel(Entity):\n   def __init__(self, position, block_type):\n    super().__init__(\n      position=position,\n      model=\"Stuff/Models/Grass_block_pycraft\",\n      scale=0.5,\n      origin_y=-0.5,\n      texture=blocks_texture.get(block_type),\n      collider=\"box\"\n      )\n    self.block_type = block_type\n\nmini_block_ia = Entity(\n  parent = camera,\n  model = \"Stuff/Models/Grass_block_pycraft\",\n  scale = 0.075,\n  texture=blocks_texture.get(selected_block),\n  position = (0.15, -0.2, 0.5),\n  rotation = (-15, -30, -5)\n  )\n\n#CTAPAR |**EHEPA|_|R\n#min_height = -5\n#for x in range(-10, 10):\n#  for z in range(-10, 10):\n#    height = noise([x * 0.02, z * 0.02])\n#    height = math.floor(height * 7.5)\n#    for y in range(height, min_height - 1, -1):\n#      if y == min_height:\n#        block = Voxel((x, y + min_height, z), \"bedrock\")\n#      elif y == height:\n#        block = Voxel((x, y + min_height, z), \"grass\")\n#      elif height - y > 2:\n#        block = Voxel((x, y + min_height, z), \"stone\")\n#      else:\n#        block = Voxel((x, y + min_height, z), \"dirt\")\nmin_height = -5\nfor x in range(-16, 16):\n  for z in range(-16, 16):\n    height = noise([x * 0.02, z * 0.02])\n    height = math.floor(height * 7.5)\n    for y in range(height, min_height - 1, -1):\n      if y == min_height:\n        blocks.append(Voxel((x, y + min_height, z), \"bedrock\"))\n      elif y == height:\n        blocks.append(Voxel((x, y + min_height, z), \"grass\"))\n      elif height - y > 2:\n        blocks.append(Voxel((x, y + min_height, z), \"stone\"))\n      else:\n        blocks.append(Voxel((x, y + min_height, z), \"dirt\"))\n\n\ndef input(key):\n   global selected_block\n   if key == \"right mouse down\":\n    hit_info = raycast(camera.world_position, camera.forward, distance=10)\n    if hit_info.hit:\n      block = Voxel(hit_info.entity.position + hit_info.normal, selected_block)\n   if key == \"left mouse down\" and mouse.hovered_entity:\n    if not mouse.hovered_entity.block_type == \"bedrock\":\n      destroy(mouse.hovered_entity)\n   if key == \"1\":\n    selected_block = \"grass\"\n   if key == '2':\n    selected_block = \"dirt\"\n   if key == '3':\n    selected_block = \"stone\"\n\ndef update():\n  mini_block_ia.texture=blocks_texture.get(selected_block)\n  if player.y \u003c= -10:\n    player.position = (0,10,0)\n\n  \nblock = blocks\n\n\n\narm = Entity(parent = camera.ui, model = 'Stuff/Models/arm1',\n             texture = arm_texture, scale = 0.2,\n             rotation = Vec3(150, 60, -30), position = Vec2(0.5,-0.6))\n\n\n\n\n\n\napp.run()`\n\nmy configuration:\nRTX 4060\nIntel Core I5 8400\n16GB DDR4 Kingston Fury\n\n\n\n\n\nP.S. i need more optimization","author":{"url":"https://github.com/Geiwwjk122","@type":"Person","name":"Geiwwjk122"},"datePublished":"2026-01-17T16:12:33Z","url":"https://github.com/Show-Me-the-Code/python/issues/572"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bf3b15e2-0622-a6ab-c9cb-13cac1831cc8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCC34:3F8DC1:A54D76:D8CC14:6AFE830D
html-safe-nonce9edc8885dd99c83b1da0210ede6c976a73f343e58d87e2a4c1b8af9d193a5754
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzM0OjNGOERDMTpBNTRENzY6RDhDQzE0OjZBRkU4MzBEIiwidmlzaXRvcl9pZCI6IjQ1NDUxMzg5NjgwMDk1NDAzNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac45cb1f412379ed78682e98e3235f26198e5132539432beed18d1c8b03fabfebc
hovercard-subject-tagissue:3825479235
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Show-Me-the-Code/python/572/issue_layout
twitter:imagehttps://opengraph.githubassets.com/251f995ee5bb312dbd5bbe6f1be40c077deb7b1e3b66cdd87c5c0cf536e69a54/Show-Me-the-Code/python/issues/572
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/251f995ee5bb312dbd5bbe6f1be40c077deb7b1e3b66cdd87c5c0cf536e69a54/Show-Me-the-Code/python/issues/572
og:image:altmy code sucks and gives only 5-15 FPS max. I programing minecraft on ursina. pls help me here's the code: `from ursina import * from ursina.prefabs.first_person_controller import FirstPersonControl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameGeiwwjk122
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/Show-Me-the-Code/python git https://github.com/Show-Me-the-Code/python.git
octolytics-dimension-user_id9983575
octolytics-dimension-user_loginShow-Me-the-Code
octolytics-dimension-repository_id27247448
octolytics-dimension-repository_nwoShow-Me-the-Code/python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27247448
octolytics-dimension-repository_network_root_nwoShow-Me-the-Code/python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/Show-Me-the-Code/python/issues/572#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FShow-Me-the-Code%2Fpython%2Fissues%2F572
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FShow-Me-the-Code%2Fpython%2Fissues%2F572
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Show-Me-the-Code%2Fpython
Reloadhttps://github.com/Show-Me-the-Code/python/issues/572
Reloadhttps://github.com/Show-Me-the-Code/python/issues/572
Reloadhttps://github.com/Show-Me-the-Code/python/issues/572
Show-Me-the-Codehttps://github.com/Show-Me-the-Code
pythonhttps://github.com/Show-Me-the-Code/python
Codehttps://github.com/Show-Me-the-Code/python
Issues131 (131)https://github.com/Show-Me-the-Code/python/issues
Pull requests119 (119)https://github.com/Show-Me-the-Code/python/pulls
Actionshttps://github.com/Show-Me-the-Code/python/actions
Projectshttps://github.com/Show-Me-the-Code/python/projects
Wikihttps://github.com/Show-Me-the-Code/python/wiki
Security and qualityhttps://github.com/Show-Me-the-Code/python/security
Insightshttps://github.com/Show-Me-the-Code/python/insights
https://github.com/Show-Me-the-Code/python
New issuehttps://github.com/login?return_to=https://github.com/Show-Me-the-Code/python/issues/572
New issuehttps://github.com/login?return_to=https://github.com/Show-Me-the-Code/python/issues/572
ursina optimizationhttps://github.com/Show-Me-the-Code/python/issues/572#top
https://github.com/Geiwwjk122
Geiwwjk122https://github.com/Geiwwjk122
on Jan 17, 2026https://github.com/Show-Me-the-Code/python/issues/572#issue-3825479235
https://github.com/yashrajgroupoffice
yashrajgroupofficehttps://github.com/yashrajgroupoffice
on Aug 6, 2026https://github.com/Show-Me-the-Code/python/issues/572#issuecomment-5202660205
@Geiwwjk122https://github.com/Geiwwjk122
https://github.com/santiagorojas14
santiagorojas14https://github.com/santiagorojas14
on Sep 6, 2026https://github.com/Show-Me-the-Code/python/issues/572#issuecomment-5557224610
https://github.com/heenll68
heenll68https://github.com/heenll68
on Oct 3, 2026https://github.com/Show-Me-the-Code/python/issues/572#issuecomment-5970903046
https://github.com/tearsaalainah26
tearsaalainah26https://github.com/tearsaalainah26
on Oct 21, 2026https://github.com/Show-Me-the-Code/python/issues/572#issuecomment-6310237511
Sign up for freehttps://github.com/signup?return_to=https://github.com/Show-Me-the-Code/python/issues/572
Sign in to commenthttps://github.com/login?return_to=https://github.com/Show-Me-the-Code/python/issues/572
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.