summaryrefslogtreecommitdiffstats
path: root/src/server/GraphImpl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-23 16:42:17 +0000
committerDavid Robillard <d@drobilla.net>2015-10-23 16:42:17 +0000
commit626ec62aab67c136c405cc88213d7b92325c01d7 (patch)
tree01a94497d665daa90ba754f44cf2bc8b25ad92d0 /src/server/GraphImpl.cpp
parent425786b0c41be41c50675815df51ed8927160865 (diff)
downloadingen-626ec62aab67c136c405cc88213d7b92325c01d7.tar.gz
ingen-626ec62aab67c136c405cc88213d7b92325c01d7.tar.bz2
ingen-626ec62aab67c136c405cc88213d7b92325c01d7.zip
Reduce overhead
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5770 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/GraphImpl.cpp')
-rw-r--r--src/server/GraphImpl.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/server/GraphImpl.cpp b/src/server/GraphImpl.cpp
index ceb94748..256d607a 100644
--- a/src/server/GraphImpl.cpp
+++ b/src/server/GraphImpl.cpp
@@ -211,9 +211,11 @@ GraphImpl::pre_process(ProcessContext& context)
// Mix down input ports and connect buffers
for (uint32_t i = 0; i < num_ports(); ++i) {
PortImpl* const port = _ports->at(i);
- port->pre_process(context);
- port->pre_run(context);
- port->connect_buffers();
+ if (!port->is_driver_port()) {
+ port->pre_process(context);
+ port->pre_run(context);
+ port->connect_buffers();
+ }
}
}