It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
What are the common bottlenecks or inherently slow actions/functions that I should look out for while developing an app/game/anything in ActioScript3 and flash?
Bottlenecks:
Exception
Redrawing
Big images
A lot of small vector graphic elements on the stage
Transparent elements / masks
There are several good practices:
Use weak links
Use the Event.RENDER
Store the value in a variable instead of frequent appeal to the fields of an object
Don't define variables in cycles
It's desirable to use StageVideo
If you use Flex be careful with binding
Be careful with events:
Don't forget to remove event listeners
Don't dispatch events without need. Especially if they cause redrawing of the stage
Plus common programming good practices
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to research some algorithms for dynamic heightmap generation but I'm not familiar with any. Getting even more dynamic. Whats some theory on how multi-dimensional heightmaps work? i.e. Caves and overhangs. Should I use multiple heightmap images or complex algorithms?
For simple 2D heightmaps the Diamond-square algorithm produces reasonable results, and is fast. There are a few things you can apply over the top of that to make it look more realistic, such as simple erosion, while still being very fast.
For more interesting features... if you want fast results, I'd stick with a 2D heightmap and then add secondary feature entities (i.e. boulders and holes), rather than try to generate a true 3D environment; but of course whether that comes close to being enough depends entirely on what you want to achieve.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
My multicore machine is receiving packets and distributes them evenly (sort-of round robin) among its cores. Each core should decide whether to let the packet pass or drop it, depending solely on its origin address.
I need to find lock-less algorithm and data structure to allow this. Can you help?
If you are happy to use Java, or look at the design of Java source, you could chose a random key and then retrieve a queue from http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/ConcurrentHashMap.html. Given the queue, you could add the packet to it without blocking if it was a http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html
Much of java.util.concurrent is due to Doug Lea, who has information on it at http://gee.cs.oswego.edu/dl/concurrency-interest/index.html.
Possibly overkill for your particular problem, but might satisfy a general request for info on data structures in this area.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I want to know if is there any specific algorithm that can be followed to understand the meaning of a word/sentence/paragraph. Basically, I want to write a program that will take text/paragraph as input and try to find out what its meaning is. And thereby highlight the emotions within the text.
Also, if there is an algorithm to understand things, can the same algorithm be applied to itself? It reduces the quest further to a point where we become interested in knowing meaning of meaning OR rather definition of definition.
You want Natural Language Processing and Semantic Technology. This is still a flourishing area in computer science. Look at things such as a Semantic Reasoner. You can start with Jena. There are also other things you can look at such as Academic Thesis papers.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
i never work with DLINQ so i dont know the use of DLINQ. so can anyone show the situation where DLINQ is required and also show me the various use of DLINQ.
"While writing type-safe queries is great for most scenarios, there are cases where you want the flexibility to dynamically construct queries on the fly. For example: you might want to provide business intelligence UI within your application that allows an end-user business analyst to use drop-downs to build and express their own custom queries/views on top of data. "
from: this article
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
how to handle orientation change event inside a usercontrol?
I'd recommend against having your control worry about the orientation it is being displayed in. This should be the concern of the page the control is contained in, not the actual control. You want to avoid the situation where the two are fighting fo determining how something should be displayed.
Try and write your control so that it work regardless of the page orientation. If you can't do that make 2 versions of the control and let the page decide which one to show based on orientation.