Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7067843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:15:02+00:00 2026-05-28T05:15:02+00:00

I am using an engine that allows SIMD code to be written, and it

  • 0

I am using an engine that allows SIMD code to be written, and it performs fast. But there is only one block that has all the code.

I understand that this code is run independently on each entity concurrently, but when there is only 1 thing changing, is it still faster to calculate it regardless? Is this the idea with SIMD, parallelism?

For instance:

void simdFunction ()
{
    center = mesh.center();    // always the same
    vert.pos.x = center.x;    // run on each vertex
}

In this case, the center is always the same, so will it be calculated for each vertex on SIMD? If so, is this still efficient?

Basically does being able to run this in parallel outweighs the cost of calculating it regardless in the general SIMD programming sense?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:15:02+00:00Added an answer on May 28, 2026 at 5:15 am

    this code is run independently on each entity concurrently

    No, that’s not how SIMD works.

    With SIMD, all arithmetic units are working in lock-step, performing identical operations. There’s no independence whatsoever.

    Generally though, you’re better off computing shared constants just once, in sequential code. That way the SIMD engine will spend less time on each slice of vertices.

    The exception would be if the computation is short, the SIMD is a co-processor (like GPGPU), and the data is already in that co-processor. Then computing it using SIMD might easily beat moving data back to the sequential processor and back.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm considering using JRuby on App Engine but have heard that Juby app on
I'm using a game engine that allows you to program in Lua. The game
I wrote a simple webapp using google app engine in python that allows users
I am using solr search engine to query an index for classifieds that match
I'm using Google App Engine and Django templates. I have a table that I
We're using MySQL with Innodb Engine storage. We have an evented environment that sends
I have a simple Google App Engine app, that I wrote using ordinary strings.
I have my own game engine using C++ and OpenGL, but I have models
How do I invoke dialog than allows user select default tts engine from code.
We have a commenting system built into our engine that allows programmers to put

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.